ID:               28486
 Updated by:       [EMAIL PROTECTED]
 Reported By:      wcucn at hotmail dot com
-Status:           Open
+Status:           Bogus
 Bug Type:         PHP options/info functions
 Operating System: WindowsXP
 PHP Version:      5.0.0RC2
 New Comment:

Duplicate of #28485


Previous Comments:
------------------------------------------------------------------------

[2004-05-22 09:00:16] wcucn at hotmail dot com

Description:
------------
I works on php 4 while I used

[browscap]
browscap = browscap.ini

and put the browscap.ini to the php directory

however, it does not work in php 5 with the message below

Warning: get_browser() [function.get-browser]: browscap ini directive
not set. in d:\Apache\htdocs\curtis\agent.php on line 2

Reproduce code:
---------------
The testing code is below
<?
$_SERVER['HTTP_USER_AGENT']=get_browser();

foreach($_SERVER['HTTP_USER_AGENT'] as $name=>$value){
        echo"<b>$name</b> $value <br />\n";
}

if($_SERVER['HTTP_USER_AGENT']->javascript==1){
        echo"javascript enabled";
}
else{
        echo"javascript disabled";
}
?>



------------------------------------------------------------------------


-- 
Edit this bug report at http://bugs.php.net/?id=28486&edit=1

Reply via email to