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

Pull out data related to my apps from Android Play Store and iOS App Store -

Change php variable from jquery value using ajax (same page) -

How can I fetch data from a web server in an android application? -