是手机峡能够转换一个PHP的Web应用程序到iPhone / Android应用? [英] is Phone Gap capable of converting a php web app into an iphone/android app?

查看:139
本文介绍了是手机峡能够转换一个PHP的Web应用程序到iPhone / Android应用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有谁使用PhoneGap的?

我有一个使用AJAX接收JSON数据的PHP应用程序。这种技术被称为PhoneGap的 http://www.phonegap.com/
是不是能到我的PHP应用程序转换为iPhone / Android应用?

我知道,如果它只是一个JavaScript / HTML / CSS的应用程序,不需要服务器端的技术差距电话能。

不过,我肯定需要互联网接入和Ajax连接到在线网络服务。


解决方案

  

有谁使用PhoneGap的?



  

是能到我的PHP应用程序转换为iPhone / Android应用?


PhoneGap的不转换任何东西。的的可以在PHP应用程序到iPhone / Android应用程序进行转换,并PhoneGap的可能是您的解决方案的一部分。

您会通过摆脱所有的PHP的开始 - 如果你的应用程序完全可以在浏览器中使用本地存储运行时,它将几乎肯定与PhoneGap的工作。 PhoneGap的也提供了一些PhoneGap的特定的JavaScript API,您可能会或可能不会需要。


  

不过,我肯定需要互联网接入和Ajax连接到在线网络服务。


PhoneGap的既不帮助也不在这里疼。 PhoneGap的环绕Android的的WebView 小部件,它本身是基于WebKit,由Chrome,Safari等使用相同的渲染引擎。如果,你摆脱你的PHP之后, 你的应用程序工作在Safari和丁目,它应该工作作为一个iPhone / Android应用程序与PhoneGap的,具有一定的调整,你的HTML / CSS / JS处理较小的屏幕尺寸,触摸屏等。

Does anyone use PhoneGap?

I have a php app which uses ajax to receive json data. This technology called PhoneGap http://www.phonegap.com/, is it able to convert my php app into an iphone/android app?

I know that if it is simply a javascript / html / css app that does not require server side technologies Phone Gap is capable.

However I definitely require the internet access and ajax connection to online web services.

解决方案

Does anyone use PhoneGap?

Yes.

is it able to convert my php app into an iphone/android app?

PhoneGap does not "convert" anything. You can convert your "php app into an iphone/android app", and PhoneGap might be part of your solution.

You would start by getting rid of all the "php" -- if your "app" can run purely in a browser using local storage, it will almost assuredly work with PhoneGap. PhoneGap also supplies some PhoneGap-specific JavaScript APIs, which you may or may not need.

However I definitely require the internet access and ajax connection to online web services.

PhoneGap neither helps nor hurts here. PhoneGap wraps around the Android WebView widget, which is itself based on WebKit, the same rendering engine used by Chrome, Safari, etc. If, after you get rid of your "php", your "app" works in Safari and Chome, it should work as "an iphone/android app" with PhoneGap, with some adjustment to your HTML/CSS/JS to deal with smaller screen sizes, touchscreens, etc.

这篇关于是手机峡能够转换一个PHP的Web应用程序到iPhone / Android应用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆