PHP Classes

Parse error: syntax error

Recommend this page to a friend!

      PHP User Agent Parser class  >  All threads  >  Parse error: syntax error  >  (Un) Subscribe thread alerts  
Subject:Parse error: syntax error
Summary:Parse error: syntax error
Messages:3
Author:Nilesh Kumar
Date:2014-12-04 13:56:37
 

 


  1. Parse error: syntax error   Reply   Report abuse  
Picture of Nilesh Kumar Nilesh Kumar - 2014-12-04 13:56:37
Parse error: syntax error, unexpected '[' in /var/www/html/parseUserAgentString.php on line 304

priviously this was on line295 now the same error with new version on line 304 after update dated 01-12-2014

Also, please specify the PHP Version required for this class, as this error more seems to be related with PHP version rather then the syntax itself.

  2. Re: Parse error: syntax error   Reply   Report abuse  
Picture of Nilesh Kumar Nilesh Kumar - 2014-12-04 13:56:38
Parse error: syntax error, unexpected '[' in /var/www/html/parseUserAgentString.php on line 304

priviously this was on line295 now the same error with new version on line 304 after update dated 01-12-2014

Also, please specify the PHP Version required for this class, as this error more seems to be related with PHP version rather then the syntax itself.

  3. Re: Parse error: syntax error   Reply   Report abuse  
Picture of Tom Parkison Tom Parkison - 2014-12-05 15:54:15 - In reply to message 2 from Nilesh Kumar
There is a possible chance that the text-based change function of this site is mangling my code, I re-uploaded it as a file. I myself use PHP version 5.4.35 so I developed it for 5.4.35.