how to let different device visit different site?

Discussion in 'PHP' started by cheaphotel, Apr 18, 2008.

  1. #1
    how to let different device visit different site? Just use the same domain, say mobile visit mobile site, and IE visit common site.
     
    cheaphotel, Apr 18, 2008 IP
  2. raymond222

    raymond222 Active Member

    Messages:
    287
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    60
    #2
    you can use the $_SERVER['HTTP_USER_AGENT']; command
    it can determine user platform, web browser and other stuff.
    Do the IF statement and check if it's got IE, then redirect.
    It's just an idea, not the full code...
     
    raymond222, Apr 19, 2008 IP