728x90 AdSpace

Latest News
Saturday, October 15, 2016

Setting up browscap.ini in PHP Config File php.ini

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

On Windows

1. Find the php.ini file in the PHP installed directory
2. Place the lite_php_browscap.ini file (recommended for web servers) in the directory where php.ini file is found
3. Now add the following lines in the php.ini config file

[browscap]
; http://php.net/browscap
browscap = "C:\Program Files (x86)\PHP\lite_php_browscap.ini"


On Linux server

1. If you are using linux server or cpanel hosting service, find the php.ini file in the home directory
2. Place the lite_php_browscap.ini file (recommended for web servers) in the directory where php.ini file is found (or) some other folder you want to kept it.
3. Now add the following lines in the php.ini config file

i) if you place the lite_php_browscap.ini in the path "home/etc/"

[browscap]
; http://php.net/browscap
browscap = "/home/xxxxxx/etc/php_browscap.ini"

ii) if you place the lite_php_browscap.ini in the path "home/" where php.ini file is placed

[browscap]
; http://php.net/browscap
browscap = "/home/xxxxxx/lite_php_browscap.ini"


On Mac - use like that

[browscap]
; http://php.net/browscap
browscap = "/usr/local/etc/lite_php_browscap.ini"


Note: Please download the browscap.ini from https://browscap.org/ based on your needs.
  • Blogger Comments
  • Facebook Comments

0 comments:

Post a Comment

Item Reviewed: Setting up browscap.ini in PHP Config File php.ini Rating: 5 Reviewed By: Thiruvikraman Govindarajan