以下是我已经照顾过的事情:
从http://tempdownloads.browserscap.com/下载了php_browscap.ini的更新副本(使用'仅限PHP使用'版本的课程)
尝试了php_browscap.ini,lite_php_browscap.ini和full_php_browscap.ini 3.将php.ini文件编辑为:[browscap]
;http://php.net/browscap
browscap = "C:\xampp\php\extras\full_php_browscap.ini"
通过检查php_info()
并删除了;来自'; browscap = .....'
重申了xampp服务器。
但仍然得到奇怪的值
Array ( [browser_name_regex] => §^.*$§ [browser_name_pattern] => * [comment] => Default Browser [browser] => Default Browser [version] => 0.0 [majorver] => 0 [minorver] => 0 [platform] => unknown [platform_version] => unknown [alpha] => [beta] => [win16] => [win32] => [win64] => [frames] => [iframes] => [tables] => [cookies] => [backgroundsounds] => [javascript] => [vbscript] => [javaapplets] => [activexcontrols] => [ismobiledevice] => [issyndicationreader] => [crawler] => [cssversion] => 0 [aolversion] => 0 )