开发者

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开发者_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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜