Redirect Mac and PC php

Discussion in 'PHP' started by ojsimon, Feb 8, 2010.

  1. #1
    Hi
    Bassically what i want to do is check the user agent and if it is a mac redirect to /mac if it is a pc redirect to /pc if it is another or unknown to /unknown does anyone know how to do this?

    Thanks
     
    ojsimon, Feb 8, 2010 IP
  2. plog

    plog Peon

    Messages:
    298
    Likes Received:
    11
    Best Answers:
    1
    Trophy Points:
    0
    #2
    plog, Feb 8, 2010 IP
  3. ojsimon

    ojsimon Active Member

    Messages:
    459
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #3
    yeah but this is not for browser its for operating system

    Thanks
     
    ojsimon, Feb 8, 2010 IP
  4. SmallPotatoes

    SmallPotatoes Peon

    Messages:
    1,321
    Likes Received:
    41
    Best Answers:
    0
    Trophy Points:
    0
    #4
    get_browser() also tells you the operating system. Read the link that plog gave you.
     
    SmallPotatoes, Feb 13, 2010 IP