note 10058 deleted from function.get-browser by irc-html

From: Date: Mon, 21 Jan 2002 00:46:02 +0000
Subject: note 10058 deleted from function.get-browser by irc-html
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-25595@lists.php.net to get a copy of this message
Here's a merged version of some of the above that checks for netscape 6 or ie. Someone else could probably do a better job of it... but this did the trick to check for a browser with decent CSS support: $ver = intval(trim(substr(getenv('HTTP_USER_AGENT'), 8 + strpos(getenv('HTTP_USER_AGENT'), "Mozilla"), 1))); $str_css = ereg('MSIE',getenv('HTTP_USER_AGENT')) || $ver >= 5 ? 'basic.css' : 'ns4.css';

« previous php.notes (#25595) next »