Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to get started converting PHP app to Native App [closed]

Tags:

php

cordova

I'm have developed a couple of apps in iPhone and Android, and am now looking to understand how Phone Gap fits into the mobile picture. Since I have an existing database-driven (mySql) web application coded in php, css and javascript, I'd like to convert to an iPhone and/or Android app using PhoneGap and jQuery Mobile.

What I'd like to do for now is find some tutorial to code a simple PhoneGap based app. Then graduate to another slightly more complex one which uses html5 for local data storage. I've started working through Jonathan Stark's excellent tutorial, "Building iPhone Apps with HTML, CSS, and JavaScript" at http://ofps.oreilly.com/titles/9780596805784/index.html. But jQtouch figures significantly in that tutorial, and I would prefer to use the more up-to-date jQuery Mobile library if at all possible.

Also, from what little I've been able to glimmer thusfar, it may be necessary to restructure the web app so the Javascript is separate from the PHP. This seems like a lot of work for something which I was hoping to just put a Phone Gap wrapper around.

So my two questions are 1) can someone please advise on good tutorial with examples to get untracked on PhoneGap and jQuery Mobile development?

And 2, confirm that ripping the PHP out of the app is my only option in order to get it to run as a web app?

like image 345
Jack BeNimble Avatar asked Jan 29 '26 06:01

Jack BeNimble


1 Answers

You can not deploy a PHP application including the web server into a native (PhoneGap) app. But you can use a native PhoneGap app to access a webpage which is located in the internet.

I once used the rendered HTML output of a PHP application for a native PhoneGap app. (I copied the HTML files manually into the www folder of PhoneGap.)

like image 200
powtac Avatar answered Jan 30 '26 20:01

powtac



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!