note 39502 deleted from function.get-browser by tomsommer

From: Date: Fri, 30 Jan 2004 19:49:57 +0000
Subject: note 39502 deleted from function.get-browser by tomsommer
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-64456@lists.php.net to get a copy of this message
Note Submitter: webmaster@xtremestuff.net ---- Another way to find out what browser someone's using is... this: $browsertype = stristr('$HTTP_USER_AGENT', 'netscape') if ($browsertype != "" ) { // IF BROWSER IS NETSCAPE //do your stuff here } else { // do other stuff if it isnt netscape } Note: stristr() is used so that the needle is the haystack is case insensitive.

« previous php.notes (#64456) next »