PHP Classes

Syntax Errors

Recommend this page to a friend!

      PHP Localization Library  >  All threads  >  Syntax Errors  >  (Un) Subscribe thread alerts  
Subject:Syntax Errors
Summary:Error in index.php
Messages:2
Author:Gary Smith
Date:2016-05-25 18:25:59
 

  1. Syntax Errors   Reply   Report abuse  
Picture of Gary Smith Gary Smith - 2016-05-25 18:25:59
The localization library was updated on 2016-05-24 but the index.php file still gets an error testing on a localhost server:
Parse error: syntax error, unexpected '[', expecting ')' in G:\htdocs\www\lib\php\localization\index.php on line 7

The code looks to be for versions of PHP that ver. 5.3.0 cannot process, and older HTML coding. Another indication is that parts of the HTML has unquoted attributes.

If the code could be updated, there might be a better chance this could be showcased better.

  2. Re: Syntax Errors   Reply   Report abuse  
Picture of alaca alaca - 2016-05-25 20:02:23 - In reply to message 1 from Gary Smith
Hi Garry,

I put wrong php version into package description, it should be 5.4 not 5.3. Update your php installation to version 5.4 or higher and everything will be ok.