SitePoint Sponsor

User Tag List

Results 1 to 5 of 5
  1. #1
    chown linux:users\ /world Hartmann's Avatar
    Join Date
    Aug 2000
    Location
    Houston, TX, USA
    Posts
    6,455
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    Does anyone know what the string is that UNIX returns with the HTTP_USER_AGENT call?

  2. #2
    SitePoint Wizard
    Join Date
    Jul 1999
    Location
    Chicago
    Posts
    2,629
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    If you are running through CGI, it in in the enviroment variable $HTTP_USER_AGENT. In PHP, it's the same.

  3. #3
    SitePoint Wizard
    Join Date
    Apr 2000
    Posts
    1,483
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I believe he wanted to know what will be returned on that by a unix box. It will vary totally on the prorgam accessing the site - there's no way to know without knowing the nix version and the program used.

  4. #4
    SitePoint Enthusiast Sparklit's Avatar
    Join Date
    Jul 2000
    Location
    Victoria,BC,Canada
    Posts
    49
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Lynx (Text based browser on most *nix systems) will give you

    "Lynx/2.8.2rel.1 libwww-FM/2.14"

  5. #5
    chown linux:users\ /world Hartmann's Avatar
    Join Date
    Aug 2000
    Location
    Houston, TX, USA
    Posts
    6,455
    Mentioned
    11 Post(s)
    Tagged
    0 Thread(s)
    I had a good chat with some of the guys on the #PHP channel and they stated that there is no real way to get the OS when it is Unix, since there are so many different versions. See $HTTP_USER_AGENT would return the browser and the OS. Well I can just do an eregi() with "Linux", "Windows", "BSD", or also UNIX. but since there are so many different versions of UNIX I won't always get accurate numbers.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •