I need help getting browscap.ini set up properly for PHP 4.2.0 use with Apache 2.0 on Linux (suse742 2.4.7).

I have optained browscap.ini (from GaryKeith.com, Nov 23 version) and copied it to /usr/local/lib where my php.ini lives. Both these .ini files are owned by root but have chmod 755. I have the following entry in php.ini

[browscap]
browscap = ./browscap.ini

I have restarted the server since adding that entry. However, phpinfo.php still shows me: "no value" for both local and master values of browscap and I don't get an array back from the PHP get_browser() function. I thought I would get something because "[Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; *)]" is in the browscap.ini and my HTTP_USER_AGENT is "Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; .NET CLR 1.0.3705)" ie. Internet Explorer 6 being used from WinXP.

How should I set up browscap.ini in Linux so that PHP get_browser() gives me some useful info?

    Write a Reply...