Dorky Posted October 6, 2009 Share Posted October 6, 2009 ok i have a host that refuses to stay current. they control my php settings and libs. is there a way to put the browsercap.ini in my root directory and point to it so that i may use the get_browser function? the workaround for this function is way to to long and not very time efficient for building new sites. thx in advance. Quote Link to comment https://forums.phpfreaks.com/topic/176634-php-libs-browsercapin/ Share on other sites More sharing options...
taquitosensei Posted October 6, 2009 Share Posted October 6, 2009 usually with shared hosts you can do a custom php.ini in your root folder. Then use that to specify the location of the browscap.ini file./ like so [browscap] browscap = /full/path/to/browscap.ini Quote Link to comment https://forums.phpfreaks.com/topic/176634-php-libs-browsercapin/#findComment-931222 Share on other sites More sharing options...
Dorky Posted October 6, 2009 Author Share Posted October 6, 2009 ok, sorry but i have to ask you to dumb it down just a bit. still only about a year of self taught php skills. is that what i put in the php.ini and do i name it "php.ini" and can i create just one php.ini in the root or do i need to do it for each directory/site? thx again. usually with shared hosts you can do a custom php.ini in your root folder. Then use that to specify the location of the browscap.ini file./ like so [browscap] browscap = /full/path/to/browscap.ini Quote Link to comment https://forums.phpfreaks.com/topic/176634-php-libs-browsercapin/#findComment-931229 Share on other sites More sharing options...
taquitosensei Posted October 6, 2009 Share Posted October 6, 2009 just create a text file called php.ini with the above as it's only contents and place that in your root directory. That should overwrite that one setting from the hosts php.ini for php scripts called from all folders above it. Quote Link to comment https://forums.phpfreaks.com/topic/176634-php-libs-browsercapin/#findComment-931408 Share on other sites More sharing options...
Dorky Posted October 6, 2009 Author Share Posted October 6, 2009 i saved it for other uses. i found a way to filter browsers with a more efficient script. thx for the help just create a text file called php.ini with the above as it's only contents and place that in your root directory. That should overwrite that one setting from the hosts php.ini for php scripts called from all folders above it. Quote Link to comment https://forums.phpfreaks.com/topic/176634-php-libs-browsercapin/#findComment-931604 Share on other sites More sharing options...
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.