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:[EMAIL PROTECTED]] > Sent: 18 February 2002 17:48 > To: [EMAIL PROTECTED] > 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php