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?

- 74,450
- 15
- 68
- 141

- 2,764
- 31
- 46
-
PHP usually runs on the server, yes. – Pekka Apr 09 '13 at 11:13
-
PHP is only for the server side .... whenever you use php a call to server is made – alwaysLearn Apr 09 '13 at 11:13
-
Ok but I'm confuse when I debug the hello world project I see that the cursor goes into uHelloWolrd.php. Is this only when I debug or does it send it the php to the mobile when I deploy to mobile – Ravaut123 Apr 09 '13 at 11:23
-
The debugger in the IDE of HTML5 Builder – Ravaut123 Apr 09 '13 at 11:30
-
1HTML5 Builder client applications are .php before deployment. After deployment, the PHP bits used for development are striped (the PHP code is executed to generate the client-side code). No PHP gets to the mobile device. Ever. – Gallaecio Apr 09 '13 at 12:17
2 Answers
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.

- 819
- 1
- 9
- 21
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.

- 510,633
- 85
- 743
- 889