Jump to content

[Solved] Configure Browscap.ini


randomer679

Recommended Posts

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.asp

The relevant php documentation for the use: http://php.net/manua...get-browser.php

and for the configuration of it (just requires setting the path in the php.ini): http://www.php.net/m...hp#ini.browscap

Again 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.

Link to comment
Share on other sites

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.

  • Like 1
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...