简体   繁体   中英

Can I use PHP on a client-side mobile application

I installed HTML5 Builder on my PC and I've made my first "hello world" Client Mobile application. The client page is uHelloWorld.js . This is Javascript but I was wondering if I can use PHP on a client-side page or is the PHP only for server?

Working with a Client mobile application in HTML5 Builder you cannot deploy .php code to the device. In fact you don't deploy .js either. Yes, you write the code in js, but during deployment the code is compiled into .apk (for Android platform) through a build on Android SDK or phonegap service. However you can install KSWEB and try to run your php KSWEB:server . I have not tried it with HTML5 Builder generated php code but it might work.

What you see in the debugger is true, HTML5 Builder has its root in RadPHP (former Delphi for PHP). These tools were designed to develop php applications using RAD components. So some internal operations may still be referring to the old paradigm. This is by no means a sign of php code to be develope/deployed to mobile using standard HTML5 Builder workflow. Keep in mind again that upon deployment, a conversion takes place.

To run PHP you need to install the PHP interpreter and runtime. Any system where you can install PHP can run PHP scripts.

Now, look for a version of PHP for mobile devices. Basically: there is none.

So: no.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM