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. The开发者_运维百科se 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.
精彩评论