Can I use PHP in a local iphone app that contains html pages?

Discussion in 'iOS Programming' started by jtbullet, May 11, 2009.

  1. jtbullet macrumors member

    Jan 19, 2009
    Hi, my friend suggested that I create a php script to handle my simple web gallery project. My project simply consists of html pages containing single images, with html forward and back links. He suggested that we use php to handle calling the images, since that way we only use one html page. Are there any special issues with using php in the iphone at this point? He is extremely experienced at php but not at iphone dev.
  2. robbieduncan Moderator emeritus


    Jul 24, 2002
    You cannot run PHP on an iPhone at all. You would need to run that on a webserver and communicate across the network (cell or WiFi).
  3. jnic macrumors 6502a

    Oct 24, 2008
    PHP is executed server-side, so the iPhone only ever sees static content, as with all other browsers, in which case the use of PHP makes no difference.

    Unless you're suggesting running PHP scripts in the client? This would require porting PHP to the iPhone, so I'm assuming this isn't what you meant...

    Maybe you could rephrase the question?

Share This Page