Browser detection

From: Date: Wed, 03 Apr 2002 18:53:15 +0000
Subject: Browser detection
Groups: php.general 
Request: Send a blank email to php-general+get-91360@lists.php.net to get a copy of this message
Can anybody tell me why, when running on the same browser, I get 2 different outputs. This is the output when I echo $HTTP_USER_AGENT: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.0) This is the output when I use get_browser(): browser_name_pattern.....Mozilla/4\.0.* parent...................Netscape 4.00 browser..................Netscape version..................4.00 majorver.................4 minorver.................00 frames...................1 tables...................1 cookies..................1 backgroundsounds......... vbscript................. javascript...............1 javaapplets..............1 activexcontrols.......... beta.....................1 I am using IE 6.0 running PHP 4.1.2 binary for Windows. -- Joshua E Minnie CIO josh@acsurf.net "Don't work for recognition, but always do work worthy of recognition."

« previous php.general (#91360) next »