Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I use php with phonegap?

I want to know whether I can use php file with phonegap or not?

like image 990
hitesh Avatar asked Jan 31 '11 10:01

hitesh


2 Answers

No you cannot. Period. Not at all. However using phonegap you can load a website that runs PHP

like image 100
Michal Avatar answered Sep 20 '22 06:09

Michal


Since PHP is a server-side scripting language, your .php files will reside on the server side. You can however connect to php files on an external server and load the html it generates. If you do this, you won't be able to use the Phonegap API's though.

Ideally, you would communicate the external php file by using ajax and retrieve information provided by it to load another local html file that is residing in your assets/www/

like image 25
Eren Tantekin Avatar answered Sep 23 '22 06:09

Eren Tantekin