apartme Posted April 25, 2005 Posted April 25, 2005 i'd like to be able to use the get_browser function that php offers in some of my scripts. according to the php documentation, the location of the browscap.ini file has to be specified in php.ini, and totalchoice doesn't support this natively. i was wondering if it would be possible to set the path to browscap.ini in the .htaccess file (the one in my root folder), and point it to a browscap.ini file that i also have sitting in my root folder. seems like that might work, but i haven't had any luck so far. i know this has worked with other php settings, because i've set my own include_path that way. here's what i've tried so far: php_value browscap '/home/apartme/php_browscap.ini' ...and it's not working... that command is sitting in the same .htaccess as this one: php_value include_path '/home/apartme/phpinc/' that include_path command works beautifully i've double checked, and my php_browscap.ini file is named correctly, and is sitting in my root folder does anybody have any ideas what i might be doing wrong, or of another approach--or am i trying to do something impossible?!?!? any ideas would be welcome... chad Quote
TweezerMan Posted April 25, 2005 Posted April 25, 2005 Welcome to the forums, Chad! The 'browscap' PHP setting can only be modified from the php.ini or the server config file - it cannot be modified from an .htaccess file. This is a limitation imposed by PHP. Quote
TCH-Dick Posted April 25, 2005 Posted April 25, 2005 browsecap is not bundled with php, and since it has "no value" defined in phpinfo then it is probally not set up. You can drop a request the the help desk to see if they will set it up. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.