0

Hi i have set the browsecap path correctly in my wamp php.ini, but i keep on getting `

Warning: get_browser(): browscap ini directive not set

then i print a phpinfo() it shows that browsecap does not have local or master value,

but i configured php.ini as follows

[browscap] ; http://php.net/browscap

browscap = "C:\wamp\bin\php\full_php_browscap.ini"

Nimir
  • 5,727
  • 1
  • 26
  • 34
Prog_Rookie
  • 438
  • 7
  • 23

2 Answers2

0

Ok there are a couple of obvious possibilities.

First you should use the UNIX directory seperator and not the DOS seperator. Remember this is PHP and a \ in double quoted string literals is an escape character.

So first try

browscap = "C:/wamp/bin/php/full_php_browscap.ini"

Secondly, and this is the most likely issue, there are 2 php.ini files in the \wamp\bin\php\{phpversion}\ folder, one called

php.ini          - which is used by the PHP CLI ( Command Line Interface )
phpForApache.ini - which is used when running PHP via Apache

Make sure you have updated phpForApache.ini.

If you use the WAMPServer menus like so wampmanager->PHP->php.ini it will automatically open the correct file for editing. I would guess this is what you have done wrong.

RiggsFolly
  • 93,638
  • 21
  • 103
  • 149
0

simply download browscap.ini from http://browscap.org and rename it as browscap.ini then paste it into

C:\wamp\bin\php\php5.5.12\extras

then configure your php.ini as browscap

C:\wamp\bin\php\php5.5.12\extras\browscap.ini

and save it.

Then click your wamp server > stop all services and then click start all services

NormundsP
  • 445
  • 2
  • 7
  • 16
protanvir993
  • 2,759
  • 1
  • 20
  • 17