Yuvi
Yuvi

Reputation: 1

get_browser() results empty/unknown result

I try to get browser information that includes platform,browser,version,... in php. But it gives result only for IE,Firefox. It won't give the result for other browser. Tell me the reason.

Upvotes: 0

Views: 1564

Answers (1)

Pascal MARTIN
Pascal MARTIN

Reputation: 401182

Make sure you have an up-to-date browscap configuration file -- see Browser Capabilities Project.


And make sure the new browscap.ini file that you've downloaded is referenced in your php.ini file, by the browscap directive.

For example, here's what I have just put in my php.ini file, to test an up-to-date file :

[browscap]
; http://php.net/browscap
browscap = /home/squale/temp/1/php_browscap.ini

Upvotes: 2

Related Questions