iphone - Is it possible to load Php file from local -


i have php file in main bundle resource path. need invoke file uiviewcontoller. file not invoking.

code:

nsstring *pathtobundle = [[nsbundle mainbundle] bundlepath];     nsurl *baseurl = [nsurl fileurlwithpath:pathtobundle];     nsstring *htmlfile = [[nsbundle mainbundle] pathforresource:@"nav" oftype:@"php"];     nsstring *htmlstring = [nsstring stringwithcontentsoffile:htmlfile encoding:nsutf8stringencoding error:nil];     //cgrect fullscreenrect=[[uiscreen mainscreen]applicationframe];     web=[[uiwebview alloc]initwithframe:cgrectmake(0, 0, 320, 480)];     [web loadhtmlstring:htmlstring baseurl:baseurl]; 

since php server-side language, not able run that, unless have php_server_for_ios running in device.

i not know if such php distribution exists, sorry.

best wishes,


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -