Browser Detection and Command

Discussion in 'PHP' started by ct2k7, Aug 5, 2008.

  1. #1
    Hi, I'm building a PHP script that sends out code based on the browser information

    e.g:

    If IE/Safari , then execute specific code, and if safari, then use specific code
    Also, if possible, based on OS or the default player of the system.

    I know basic PHP but I don't know how to do this

    I know how to use IF ...ELSE...statements .
     
    ct2k7, Aug 5, 2008 IP
  2. MartinGr

    MartinGr Peon

    Messages:
    38
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    MartinGr, Aug 5, 2008 IP
    ct2k7 and nabil_kadimi like this.
  3. ct2k7

    ct2k7 Peon

    Messages:
    457
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thankyou MartinGR. That resource is very helpful and has helped me accomplish exactly what I need to do.
     
    ct2k7, Aug 6, 2008 IP
  4. cakung

    cakung Peon

    Messages:
    113
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #4
    wow..thanks a lot MartinGr
     
    cakung, Aug 8, 2008 IP
  5. nabil_kadimi

    nabil_kadimi Well-Known Member

    Messages:
    1,065
    Likes Received:
    69
    Best Answers:
    0
    Trophy Points:
    195
    #5
    Yes... a great resource for all PHPers... you deserve to be flooded by green reps... thanks
     
    nabil_kadimi, Aug 8, 2008 IP