How should I be setting browscap.ini file

不羁岁月 提交于 2019-12-03 23:35:17

You are to use the Full PATH and restart your server when you are done

Example

[browscap]
; http://php.net/browscap
browscap = "C:\xampp\php\extras\browscap.ini"

on linux server

wget http://browscap.org/stream?q=Lite_PHP_BrowsCapINI -O /etc/php.d/browscap.ini

[browscap]
; http://php.net/browscap
browscap = "/etc/php.d/browscap.ini"

use this code for install, tested on mint and debian

wget http://browscap.org/stream?q=Lite_PHP_BrowsCapINI -O /etc/php5/apache2/browscap.ini
sudo echo -e "[browscap]\n  browscap = '/etc/php5/apache2/browscap.ini'" >> php.ini
sudo service apache2 reload

This is work for me on MacBook.

[browscap]
; http://php.net/browscap
browscap = "/usr/local/etc/browscap.ini"
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!