UIWebView can't display PHP files

2019-08-12 14:30发布

I am using a UIWebView to display local php file, but id shows only "undefined" why ?

2条回答
我想做一个坏孩纸
2楼-- · 2019-08-12 14:38

Your PHP file being a local file to the iPhone has no way of being executed for there is no web server set up.

查看更多
淡お忘
3楼-- · 2019-08-12 14:53

how do you plan to serve the php file in iphone? Unless there is an internal web server, you cannot view a php file from a web view.

查看更多
登录 后发表回答