Browscap.ini Error - expecting ']'
I just installed the latest lite_php_browscap.ini on my PHP7.4 server and I'm getting the following error ...
PHP: syntax error, unexpected end of file, expecting '>' in /opt/cpanel/ea-php74/root/etc/php.d/lite_php_browscap.ini on line 2364
I would have assumed that these files would be failly well tested before being released, is there something else I have to do to get the server to parse is properly?
-
Hey there! Can you let me know how you installed that tool? I'm not seeing that available through any of the normal PHP extension installer methods on a standard cPanel server, so there may be custom work necessary to get this working. 0 -
I just downloaded and copied the lite_php_browscap.ini file to /opt/cpanel/ea-php74/root/etc/php.d/ Then editied the php.ini file to point to the new file i.e. browscap = /opt/cpanel/ea-php74/root/etc/php.d/lite_php_browscap.ini 0 -
The problem is that the browscap.ini files are full of lines like these ... [Mozilla/5.0 (compatible; MSIE 9.0*; *Windows NT 5.1*Trident/5.0* 360Spider*] Where the string contains a semi-colon which is interpreted as a comment, thus causing the closing ">" to not be found and therefore generating the error - " syntax error, unexpected end of file, expecting '>'" I download the files from 0
Please sign in to leave a comment.
Comments
4 comments