Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Sep 2005
    Posts
    31
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Viewing service and op system code?

    I'm currently making a block that would show the viewers IP, ISP, operating system and what they are are using to view the page(i.e. IE6 ect). I'm not sure on what the codes would be for operating system and viewing service. So if anyone knows these codes I would appreciate it.

  • #2
    Senior Coder NancyJ's Avatar
    Join Date
    Feb 2005
    Location
    Bradford, UK
    Posts
    3,172
    Thanks
    19
    Thanked 65 Times in 64 Posts
    I'm not sure that it can be done purely in php since the code is executed on ther server - ie before it reaches the clients browser. This sort of thing is more often done in javascript (client side)
    The broswer would be $_SERVER['HTTP_USER_AGENT'] or http://uk2.php.net/manual/en/function.get-browser.php if you want more information
    Last edited by NancyJ; 09-20-2005 at 08:09 AM.

  • #3
    New Coder
    Join Date
    Sep 2005
    Location
    Berlin, Germany
    Posts
    23
    Thanks
    0
    Thanked 0 Times in 0 Posts
    do some var_dump($_SERVER); and pick your disired values.


  •  

    Posting Permissions

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