PHP is a server side scripting language. Php is for fetching data from the datastore, perform bussiness logics, then dump the necessary html pages on the browser for rendering. Php does not have ui toolkits. It relies on html. There are html5 and js frameworks like cordova, angular, react etc you can use for that.
The PHP interpreter isn't available on a mobile device, which is why cannot package PHP files into a Android app and expect it to work.
You could however write your backend in PHP and use XMLHTTP calls (in JavaScript) to retrieve data and present it to the user.
To develop Android Mobile App through PHP most time three layers required:
- Android App Layer - where developer has to develop App which will run on Android platform.
- Web Services - this is back-end service layer, It can be develop in PHP, Java, .NET etc. PHP is most freeware language, and the cost of development also less than others.
- Database : Last layer where data is saved. Mobile Android App interact with Web services and Web services interact with Database.
No comments:
Post a Comment