Forum Moderators: coopster

Message Too Old, No Replies

php based os detection script?

         

atarijake

1:54 pm on Jun 7, 2006 (gmt 0)

10+ Year Member



I was wondering if anybody has had any experience with getting an os detection script to dish out a css file specific for either a pc or a mac? I'm trying to deal with font size inconsistencies between the platforms and I'm fed up with the whole thing, anybody have any ideas? thanks!

coopster

8:59 pm on Jun 8, 2006 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



You could always check to see if the user agent is being offered by checking the existence and/or value of the associated superglobal of the same name,
$_SERVER['HTTP_USER_AGENT']
.