开发者

Use PHP in UIWebview on iPhone

Is this possible??

If i wanted to put a UIWebview into my app, could i make mysql db calls and use other PHP func开发者_高级运维tions?


You can tell your UIWebView to load a URL of a file sitting on a web server. That URL can be to a PHP page that can do... well, anything a PHP page can do. Database stuff, etc.

But that's happening on the SERVER. PHP is a SERVER-based technology. PHP doesn't run on the BROWSER, which is what a UIWebView is.


No. Think of the UIWebView as a web browser, as opposed to a web server. It is effectively a way of embedding Mobile Safari into your application.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜