RE: [PHP] get_browser();

From: Date: Mon, 18 Feb 2002 18:29:29 +0000
Subject: RE: [PHP] get_browser();
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-85243@lists.php.net to get a copy of this message
Have you got the browscap.ini file installed properly ? and have you got a up to date version of browscap.ini ? and What is reported by IE visitng the script ? Alastair > -----Original Message----- > From: Chris Boget [mailto:chris@wild.net] > Sent: 18 February 2002 17:48 > To: php-general@lists.php.net > Subject: [PHP] get_browser(); > > > The following example that is in the onsite documentation: > > <? > function list_array ($array) { > while (list ($key, $value) = each ($array)) { > $str .= "<b>$key:</b> $value<br>\n"; > } > return $str; > } > echo "$HTTP_USER_AGENT<hr>\n"; > $browser = get_browser(); > echo list_array ((array) $browser); > ?> > > Isn't working as described in the example output provided on > the page. In fact, half the time, get_browser() is returning > nothing. And HTTP_USER_AGENT is only returning: > > Mozilla/4.7 [en] (Win95; I) > > for Netscape. Why isn't it (get_browser()) providing all the > information as displayed in the example provided in the docs? > > Ultimately, I'm trying to figure out how I can determine if the > user is using NS 4.x or not... > > Chris > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#85243) next »