Re: Problem with browscap.ini

From: Date: Wed, 20 Nov 2002 09:11:44 +0000
Subject: Re: Problem with browscap.ini
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-125209@lists.php.net to get a copy of this message
At 10:09 20.11.2002, Martin Magnusson said: --------------------[snip]-------------------- >I've recently installed php 4.2.3 on Apache 2.0.43. (windows2000) >I downloaded a browscap.ini file from GaryKeith.com and copied it to >c:\WINNT\system32\browscap.ini >In php.ini the value for browscap is set to c:\WINNT\system32\browscap.ini > >This doesn't work... For example: the variable $HTTP_USER_AGENT is empty. > >I've also tried to put the the browscap file in system32\inetsrv\ --------------------[snip]-------------------- Do you have register_globals set to "On"? Try $_SERVER['HTTP_USER_AGENT']. This variable exists independent from the browscap.ini file. You only need browscap.ini for the get_browser() function to work correctly. This should work: $browser = get_browser($_SERVER['HTTP_USER_AGENT']); -- >O Ernest E. Vogelsinger (\) ICQ #13394035 ^ http://www.vogelsinger.at/

« previous php.general (#125209) next »