问题
I am using a UIWebView to display local php file, but id shows only "undefined" why ?
回答1:
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.
回答2:
Your PHP file being a local file to the iPhone has no way of being executed for there is no web server set up.
来源:https://stackoverflow.com/questions/8326210/uiwebview-cant-display-php-files