title: How to get started converting PHP app to Native App
body: <p>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. </p>
  
  <p>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 <a href="http://ofps.oreilly.com/titles/9780596805784/index.html" rel="nofollow">http://ofps.oreilly.com/titles/9780596805784/index.html</a>. 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. </p>
  
  <p>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.</p>
  
  <p>So my two questions are 1) can someone please advise on good tutorial with examples to get untracked on PhoneGap and jQuery Mobile development? </p>
  
  <p>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?  </p>