get_browser not working

前端 未结 4 784
野性不改
野性不改 2020-12-11 04:14

it\'s not working.i mean i have many scripts to get ip and os but anyway get_browser is internal function and should work but its not.when i try to get a print_r on the func

4条回答
  •  轮回少年
    2020-12-11 04:44

    from php.net:

    Note: In order for this to work, your browscap configuration setting in php.ini must point to the correct location of the browscap.ini file on your system. browscap.ini is not bundled with PHP, but you may find an up-to-date » php_browscap.ini file here. While browscap.ini contains information on many browsers, it relies on user updates to keep the database current. The format of the file is fairly self-explanatory.

    sounds like your browscap.ini isn't up to date.

提交回复
热议问题