note 8348 deleted from Variables prédéfinies by jmcastagnetto
| From: | jmcastagnetto@php.net | Date: | Thu, 07 Sep 2000 13:53:18 +0000 |
| Subject: | note 8348 deleted from Variables prédéfinies by jmcastagnetto | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-4315@lists.php.net to get a copy of this message | ||
Detect the browser and assign a var with the HTTP_USER_AGENT:
<?
// Whois Browser Script
// ME: Microsoft Internet Explorer
// NN: Netscape Navigator
if(eregi("MSI",$HTTP_USER_AGENT)){$browser="ME";}else{$browser="NN";}
?>