简体   繁体   中英

Is it possible to create a php based iphone/android app with PhoneGap or Appcelerator?

I want to be able to make an iphone and android app using php. I have looked at phonegap and appcelerator and it seems like only html and javascript can be used. These frameworks want to make it easy to make apps using web technologies and PHP i would argue is one of the biggest web technologies, but I'm not seeing much (if any) support. I am new, so I could be wrong on multiple levels. So please enlighten me and let me know if what I am trying to achieve is possible.

Thanks in advance.

Yes and no. There is no reason why you cannot have PHP running on your own server computer that returns HTML or XML that gets consumed by your mobile application, but to the best of my knowledge, there is currently no way to have PHP running on the mobile phone, itself (although even if you could, PHP is typically a server-side technology and not a client-side technology, so that would be unusual).

I should add that most mobile applications are merely thin clients for web services. You are best off first implementing the web service (using whatever language you find most appropriate), and then creating mobile phone application that simply provides a UI for invoking the service and displaying the results.

Yes, HTML and PHP are seamless when used in a web setting. You can directly modify content in your HMTL with PHP and Javascript to plug into PhoneGap.

Although I have never seen the PhoneGap SDK, I'm sure you could fit PHP in there somewhere.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM