简体   繁体   中英

Get_browser returns strange values even with updated browscap.ini defined in php.ini

Here are the things that i have already taken care of:

  1. Downloaded updated copy of php_browscap.ini from http://tempdownloads.browserscap.com/ (used the 'use only with PHP' version ofcourse)

  2. tried php_browscap.ini,lite_php_browscap.ini and full_php_browscap.ini 3. edited the php.ini file to: [browscap] ;http://php.net/browscap browscap = "C:\\xampp\\php\\extras\\full_php_browscap.ini"

  3. confirmed that i have changed the correct php.ini file by checking php_info()

  4. and yes removed that ; from ';browscap = .....'

  5. restated the xampp server.

But still getting the strange values

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 )

我从http://tempdownloads.browserscap.com/更新了browscap.ini文件

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM