Need Help in Mobile redirect script

Discussion in 'PHP' started by owhweb, Jun 1, 2011.

  1. #1
    Hi to All,

    I believe this is the right place to put this question. I am building one mobile website based on tamarai.co.uk. The design is ready. All I need is to have a php script of browser detect and redirect accordingly either it is computer or any mobile device. Please help me and tell me where I can get it without any cost. I also want one more feature in the script, that is, if the website is being watched in mobile, the site should have the facility to redirect to the normal website mode on clicking a particular link like Click here to view normal website.

    Any help in this regard will be highly appreciated.
     
    owhweb, Jun 1, 2011 IP
  2. Meglepett

    Meglepett Active Member

    Messages:
    152
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #2
    $iPhone = (bool) strpos(strtolower($_SERVER['HTTP_USER_AGENT']), 'iphone');
    if ($iPhone)
    {


    }
     
    Meglepett, Jun 1, 2011 IP
  3. owhweb

    owhweb Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi,

    Thanks for the revert. I need the script which can be applicable on every type of mobile device, either it's android, iphone, blackberry, symbion, windows or any other.
     
    owhweb, Jun 1, 2011 IP
  4. echipvina

    echipvina Active Member

    Messages:
    145
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #4
    echipvina, Jun 3, 2011 IP
  5. healthyprofits

    healthyprofits Member

    Messages:
    326
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    26
    #5
    i think this may be what you are looking for i have just bought it for my own business
    http://trks.us/s1869
    great tutorials come along with it.
     
    healthyprofits, Jul 25, 2011 IP