Greetings!
Would someone please help me with OS detection. I'm doing some CSS development that breaks in Mac, and need to create a second stylesheet to accomodate the differences.
I've read the manual and searched the forums of this site to no avail.
Thank you for your help with this.
Pat
Operating System Detection
Moderator: General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
You should be able to get some information from
But that is an optional header and so it wont always be there.
If you:
You should get a pretty good idea of what you can pick up from the HTTP Request 
Code: Select all
echo $_SERVER['HTTP_USER_AGENT'];If you:
Code: Select all
echo '<pre>';
print_r($_SERVER);
echo '</pre>';- shiznatix
- DevNet Master
- Posts: 2745
- Joined: Tue Dec 28, 2004 5:57 pm
- Location: Tallinn, Estonia
- Contact:
a quick google search turned up this
http://techpatterns.com/downloads/php_b ... p#php_full
but i didnt look at it extensivly
p.s. pbritten, if you know allison legheart or ben smith (both goto PSU) say hello to em for me!
http://techpatterns.com/downloads/php_b ... p#php_full
but i didnt look at it extensivly
p.s. pbritten, if you know allison legheart or ben smith (both goto PSU) say hello to em for me!