View Full Version : Viewing service and op system code?

09-19-2005, 11:28 PM
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.

09-20-2005, 09:06 AM
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

The Doc
09-20-2005, 02:59 PM
do some var_dump($_SERVER); and pick your disired values.