Need to check for iPhone or iPad Touch

Discussion in 'PHP' started by stephan2307, Sep 17, 2010.

  1. #1
    Hi,

    I have set up a website specific for iPhone and iPod Touch users. Problem is that I don't have a iPhone or iPod Touch.

    Does someone have an iPhone or an iPod Touch and can quickly see if they can access the website (all other devices should be redirected)

    url id http://iphone.ldstoolbar.com

    Thanks,
     
    stephan2307, Sep 17, 2010 IP
  2. danx10

    danx10 Peon

    Messages:
    1,179
    Likes Received:
    44
    Best Answers:
    2
    Trophy Points:
    0
    #2
    danx10, Sep 17, 2010 IP
  3. stephan2307

    stephan2307 Well-Known Member

    Messages:
    1,277
    Likes Received:
    33
    Best Answers:
    7
    Trophy Points:
    150
    #3
    Tried it but all it does is to display an iphone image and display a website in an iframe. It does not properly identify itself as iphone
     
    stephan2307, Sep 17, 2010 IP
  4. MyVodaFone

    MyVodaFone Well-Known Member

    Messages:
    1,048
    Likes Received:
    42
    Best Answers:
    10
    Trophy Points:
    195
    #4
    ipod touch stays on the address
     
    MyVodaFone, Sep 17, 2010 IP
  5. stephan2307

    stephan2307 Well-Known Member

    Messages:
    1,277
    Likes Received:
    33
    Best Answers:
    7
    Trophy Points:
    150
    #5
    cool thanks alot :D
     
    stephan2307, Sep 17, 2010 IP
  6. MyVodaFone

    MyVodaFone Well-Known Member

    Messages:
    1,048
    Likes Received:
    42
    Best Answers:
    10
    Trophy Points:
    195
    #6
    Just to be sure, I tried it on another device, lg cookie, it says the site is designed for iphone or touch, but it didn't redirect me.
     
    MyVodaFone, Sep 17, 2010 IP
  7. stephan2307

    stephan2307 Well-Known Member

    Messages:
    1,277
    Likes Received:
    33
    Best Answers:
    7
    Trophy Points:
    150
    #7
    hmm. it is a javascript redirect. So guess that one didn't work. I will put a html link on just in case it doesn't redirect.

    Thanks for telling me.
     
    stephan2307, Sep 17, 2010 IP
  8. danx10

    danx10 Peon

    Messages:
    1,179
    Likes Received:
    44
    Best Answers:
    2
    Trophy Points:
    0
    #8
    The iframe width/height is set to the iPhone's screen resolution.....but apart from that I dont think it sends any iphone user agent header - which is probably why it won't work with your site ;)
     
    danx10, Sep 17, 2010 IP
  9. andymoo

    andymoo Peon

    Messages:
    169
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #9
    andymoo, Sep 26, 2010 IP