1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

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,283
    Likes Received:
    364
    Trophy Points:
    83
    Keep your Self promoting urls into signatures only.
     
  3. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,646
    Likes Received:
    86
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    remove:
    PHP:
    if(preg_match("/iphone/i",$_SERVER["HTTP_USER_AGENT"])) return false;
    Add 'iphone' to $uamatches array
     

Share This Page