开发者

get_browser() results empty/unknown result

开发者 https://www.devze.com 2023-02-23 10:11 出处:网络
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开发者_JAVA技巧 browser. Tell me the rea

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开发者_JAVA技巧 browser. Tell me the reason.


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
0

精彩评论

暂无评论...
验证码 换一张
取 消