Page 1 of 1
get operating system
Posted: Mon Jun 21, 2004 12:46 pm
by Nay
I've searched all over google but I can't seem to find a function that tells me the client's operating system. I'm creating a counter system so I'd appreciate it if you can point me to other information-retrieving functions.
Thanks,
-Nay
Posted: Mon Jun 21, 2004 12:48 pm
by feyd
$_SERVER['HTTP_USER_AGENT']
[php_man]get_browser[/php_man]() note: an option in php.ini must be enabled for this to work. It can't be turned on with .htaccess
Posted: Mon Jun 21, 2004 12:51 pm
by tim
print_r($_SERVER)
HTTP_USER_AGENT I think is what u need.
edit- beaten again
Posted: Mon Jun 21, 2004 12:56 pm
by Illusionist
the user agent won't always tell you the users Operating system
Posted: Mon Jun 21, 2004 12:58 pm
by feyd
true.. but that's all you get from the browser that can have that information.