randomer679 Posted April 2, 2012 Posted April 2, 2012 Hello, I hope this is the correct place for this. I was wondering if you could please configure browscap in php? It just requires downloading a small text file and configuring php to show it where the file is. This is needed for the get_browser() function in php and it would be very helpful if you could do this please .Further info:The file can be found here (it's the 'php_browscap.ini' file): http://browsers.gary...m/downloads.aspThe relevant php documentation for the use: http://php.net/manua...get-browser.phpand for the configuration of it (just requires setting the path in the php.ini): http://www.php.net/m...hp#ini.browscapAgain sorry if this is the wrong place it was my best guess EDIT: Sorry I just noticed the customer feedback board which may have been more appropriate, I didn't read that it included feature requests.
Ice IT Support Posted April 2, 2012 Posted April 2, 2012 Yes! Configuring browscap would be excellent. But until then, this fix will work: <?php ini_set("browscap","path_to_browscap.ini"); ?> Put this at the top of pages using get_browser(), and upload your browscap.ini to your home folder. 1
randomer679 Posted April 2, 2012 Author Posted April 2, 2012 Yes! Configuring browscap would be excellent. But until then, this fix will work:<?phpini_set("browscap","path_to_browscap.ini");?>Put this at the top of pages using get_browser(), and upload your browscap.ini to your home folder.Thanks, but I tried this and it didn't work. I looked through the php manual and it says that this option can only be configured in the php.ini file and not in user scripts.
randomer679 Posted April 3, 2012 Author Posted April 3, 2012 Oops! Missed that part. Sorry! Nevermind for future reference this link will help: https://github.com/GaretJax/phpbrowscap/wiki/QuickStartJust scroll down to setup without composer
Recommended Posts