How to run php code inside cordova?

merlin picture merlin · Jun 4, 2015 · Viewed 18.5k times · Source

I am new to cordova and want to transfer my existing app build with jquery mobile and php to iOS/Android. Am I correct, that there is no php interpreter inside cordova? That would mean, that the existing app is not transfarable to cordova as php is a central component in building those html files inside the project. This would make it kind of useless for me.

Is there a way to run php code inside cordova?

Answer

user1969316 picture user1969316 · Jun 4, 2015

You cannot use any server-side scripting language (ex: PHP) inside cordova. But using Jquery and AJAX you can call php functions and get data easily.