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

From: Date: Mon, 21 Jan 2002 05:36:37 +0000
Subject: note 14924 deleted from function.get-browser by irc-html
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-25609@lists.php.net to get a copy of this message
Salute Gentleman, The best way I see to test the browser on a PHP script seems like this: if (! ereg ("MSIE", getenv('HTTP_USER_AGENT'))) { echo "This browser isn't an IE, probably a Netscape one."; } else { echo "This an MS browser for sure!"; } It´s kinda simple but covers most of browsers on Internet. I didn't check if it works for older versions of IE.

« previous php.notes (#25609) next »