PHP Classes

php String Socializer Parse error

Recommend this page to a friend!

      PHP String Socializer  >  All threads  >  php String Socializer Parse error  >  (Un) Subscribe thread alerts  
Subject:php String Socializer Parse error
Summary:Parse error: syntax error, unexpected '[' in example.php
Messages:4
Author:Gary Smith
Date:2016-07-07 22:14:16
 

  1. php String Socializer Parse error   Reply   Report abuse  
Picture of Gary Smith Gary Smith - 2016-07-07 22:14:16
The requirements state php 5, but there is an error with php version 5.3.27. I am hoping you can make it work with all versions of php from version 5 on since I cannot change the php version I am hoping to use this on. The error is Parse error: syntax error, unexpected '[' in phpstringsocializer\example.php on line 16.

Thanking you in advance.

  2. Re: php String Socializer Parse error   Reply   Report abuse  
Picture of Luciano Salvino Luciano Salvino - 2016-07-08 00:25:21 - In reply to message 1 from Gary Smith
Hi, You are right, I'll change the script to accept php >= 5.2

Thanks for having noticed me!

  3. Re: php String Socializer Parse error   Reply   Report abuse  
Picture of Luciano Salvino Luciano Salvino - 2016-07-09 18:40:49 - In reply to message 1 from Gary Smith
Hi, I just upload a new version (v1.1) that support your PHP version
Regards

  4. Re: php String Socializer Parse error   Reply   Report abuse  
Picture of Gary Smith Gary Smith - 2016-08-12 15:49:14 - In reply to message 3 from Luciano Salvino
Almost there; in stringSocializer.php, the private $socialNetworks array still uses the bracket form, so php references an error on line 27.

Thanks for the idea.