get_browser();

From: Date: Mon, 18 Feb 2002 17:47:51 +0000
Subject: get_browser();
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-85234@lists.php.net to get a copy of this message
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

« previous php.general (#85234) next »