[英]Is it possible to create an apk file before deploying php mobile application in server?
To creata apk file for php mobile application. 为php移动应用程序创建apk文件。 is it necessary to deploy it in the server before creating apk?
创建APK之前是否有必要在服务器中部署它?
Yes, it is possible, 对的,这是可能的,
Enter address as http://ip-address/
followed by the path of your PHP file in your code. 在
http://ip-address/
输入地址,然后在代码中输入PHP文件的路径。
For example http://192.168.1.7/test/example.php
例如http://192.168.1.7/test/example.php
You could get your IP address By executing ifconfig
in the terminal 您可以通过在终端中执行
ifconfig
来获取IP地址
To test your app for Android localhost connection with PHP MySQL in Android Mobile Phone, your computer and mobile phone should be connected to the same Wi-Fi router . 要在Android Mobile Phone中使用PHP MySQL测试您的应用程序的Android localhost连接,您的计算机和手机应连接到同一Wi-Fi路由器 。
Note: Before putting your address into the code, test address in your mobile browser for whether the address is accessible or not. 注意:在将地址放入代码中之前,请在移动浏览器中测试地址是否可访问。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.