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

    Joined:
    Jan 19, 2009
    #1
    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.
    Thanks!
    Jarrett
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    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

    Joined:
    Oct 24, 2008
    Location:
    Cambridge
    #3
    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