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
精彩评论