mobile redirect php script

Discussion in 'PHP' started by ashcares, May 24, 2009.

  1. ashcares

    ashcares New Member

    Joined:
    May 24, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    Hi there,

    I was hoping someone might help me edit this mobile redirect code posted at:
    pcmechanix.ca/mobile_redirect.htm

    so that it includes IPhones with the redirecting process.

    Any suggestions?

    FYI - Besides this minor exception, it is quite an effective code for redirecting mobile phones. You can try it for yourself, simply enter the following URL into your mobile:

    <<Snipped>>

    Thanks,

    Ash
    Webmaster
     
    Last edited by a moderator: May 25, 2009
  2. shabbir

    shabbir Administrator Staff Member

    Joined:
    Jul 12, 2004
    Messages:
    15,375
    Likes Received:
    388
    Trophy Points:
    83
    Keep your Self promoting urls into signatures only.
     
  3. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,645
    Likes Received:
    87
    Trophy Points:
    48
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    http://blog.pradeep.net.in
    remove:
    PHP:
    if(preg_match("/iphone/i",$_SERVER["HTTP_USER_AGENT"])) return false;
    Add 'iphone' to $uamatches array
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice