note 39502 added to function.get-browser

From: Date: Fri, 30 Jan 2004 17:14:52 +0000
Subject: note 39502 added to function.get-browser
Groups: php.notes 
Request: Send a blank email to php-notes+get-64449@lists.php.net to get a copy of this message
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. ---- Manual Page -- http://www.php.net/manual/en/function.get-browser.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+39502 Delete -- http://master.php.net/manage/user-notes.php?action=delete+39502&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+39502&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#64449) next »