即使使用php.ini中定义的更新的browscap.ini,Get_browser也会返回奇怪的值

时间:2013-12-06 01:08:11

标签: php html vb.net php-ini browscap

以下是我已经照顾过的事情:

  1. http://tempdownloads.browserscap.com/下载了php_browscap.ini的更新副本(使用'仅限PHP使用'版本的课程)

  2. 尝试了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"

  3. 通过检查php_info()

  4. 确认我更改了正确的php.ini文件
  5. 并删除了;来自'; browscap = .....'

  6. 重申了xampp服务器。

  7. 但仍然得到奇怪的值

    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 )

2 个答案:

答案 0 :(得分:0)

我从http://tempdownloads.browserscap.com/

更新了browscap.ini文件

答案 1 :(得分:0)

更新的浏览器文件现在位于http://browscap.org