在平板电脑/手机上部署php jqm移动应用程序[关闭]

我尝试过使用phonegap,但php脚本不起作用?
其他替代方法如何使用php jqm 应用程序部署在平板电脑上进行测试?</ p>
</ div>

展开原文

原文

I have tried using phonegap , but the php scripts do not work? Any other alternatives as to how the php jqm applications are deployed on tablet for testing?

1个回答



PHP旨在作为服务器端语言在适当的计算机/服务器上运行。 因此,您需要其他软件,因为浏览器无法自行解释PHP语言。</ p>

但是,如果您希望在设备上运行PHP和JQM,那么它不是死路一条 在Android上,您可以尝试 KSWEB:服务器+ PHP + MySQL </ strong>软件将设备转换为Web服务器并包含PHP </ p>

出于兴趣,我刚测试了这个软件,它的工作原理。 如果您有Android设备下载并安装该软件。 Web服务器自动启动。 将您的整个文件夹(jqm + php脚本)转移到手机上的htdocs文件夹中,打开浏览器并输入( localhost:8080 / the-name-of-the-folder </ strong>)和你的jqm + php脚本运行正常。</ p>

https://play.google.com/store/apps/details?id=ru.kslabs.ksweb&amp;hl=en </ p>

或者 检查Ubuntu touch, http://www.ubuntu.com/phone 我认为你可以安装任何东西 像一个包含PHP的LAMP服务器。 这是一个很好的选择,因为这样的东西是免费的。 除了设备。</ p>
</ div>

展开原文

原文

PHP is meant to run on Proper Computer/Server as its a Server Side Language. So you need additional Software as the Browser does not have the ability to Interpret the PHP Language by Itself.

However its not a dead end if you wish to run PHP and JQM on a Device by itself.

On Android you can try KSWEB: server + PHP + MySQL Software which turns the device into a web server and includes PHP

Out of interest i just tested this software and it works. If you have an Android device download and install the software. The web server starts automatically. Transfer your whole folder (jqm+php scripts you have) in the htdocs folder on the phone, open a browser and type (localhost:8080/the-name-of-the-folder) and your jqm + php scripts will run ok.

https://play.google.com/store/apps/details?id=ru.kslabs.ksweb&hl=en

Alternatively Check Ubuntu touch, http://www.ubuntu.com/phone i think you can install anything on that like a LAMP server which includes PHP. Its a good choice because stuff like that is free. except for the device.

duanmu2015
duanmu2015 非常感谢! 我会尽力让你知道..
5 年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐