开发者

Use PHP in UIWebview on iPhone

开发者 https://www.devze.com 2023-01-27 15:38 出处:网络
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

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

精彩评论

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