| 
        php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login | 
  [2000-12-26 02:35 UTC] chris-php-bugs at improbable dot org
 $ua = get_browser(); print_r($ua); There are no error messages that I've been able to find - nothing in the php error log or the apache log. I've tested with a number of user-agent values and it has returned false in every case. (It is checking $HTTP_USER_AGENT, though - unset($HTTP_USER_AGENT) will cause an error indicating that it couldn't find the variable) I've verified that it is picking up the correct file and that the file is readable by the apache process (at least using the php file functions). PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits             
             | 
    |||||||||||||||||||||||||||
            
                 
                Copyright © 2001-2025 The PHP GroupAll rights reserved.  | 
        Last updated: Tue Nov 04 14:00:01 2025 UTC | 
As mentioned in the original report, browscap.ini exists and the browscap entry in php.ini is pointing to it. A simple test script (e.g. "echo count(file(ini_get('browscap')))") had no problems loading the file.