|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2004-05-22 11:30 UTC] derick@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Dec 07 21:00:01 2025 UTC |
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"; } ?>