Jump to content

Recommended Posts

Posted

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... :D

 

chad

Posted

Welcome to the forums, Chad! :D

 

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.

Posted

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.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...