PHP Classes

Parse error:

Recommend this page to a friend!

      Cities and zip codes  >  All threads  >  Parse error:  >  (Un) Subscribe thread alerts  
Subject:Parse error:
Summary:Parse error: syntax error, unexpected T_STRING, expecting T_OLD_
Messages:9
Author:melo
Date:2006-10-16 19:47:31
Update:2006-10-18 12:54:37
 

  1. Parse error:   Reply   Report abuse  
Picture of melo melo - 2006-10-16 19:47:31
Hello,
i have this error : Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/meloman/public_html/cp1/php5/ocity.cls.php on line 6

please help me thanks

  2. Re: Parse error:   Reply   Report abuse  
Picture of Johan Barbier Johan Barbier - 2006-10-17 06:15:01 - In reply to message 1 from melo
Hi, you do not have PHP5, and are using PHP5 classes, obviously.
Try the PHP4 version.
Anyawy, there was errors in the php4 version, I will upload the new files today (I had forgotten, sorry).

  3. Re: Parse error:   Reply   Report abuse  
Picture of melo melo - 2006-10-17 08:03:56 - In reply to message 2 from Johan Barbier
merci johan

  4. Re: Parse error:   Reply   Report abuse  
Picture of Johan Barbier Johan Barbier - 2006-10-17 12:16:15 - In reply to message 3 from melo
Mais de rien ;-)

  5. Re: Parse error:   Reply   Report abuse  
Picture of melo melo - 2006-10-17 18:39:32 - In reply to message 1 from melo
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/meloman/public_html/cp1/villes/php5/ocity.cls.php on line 6

j ai encore ce message :(

  6. Re: Parse error:   Reply   Report abuse  
Picture of melo melo - 2006-10-17 18:40:20 - In reply to message 5 from melo
voici le lien :

meloman.net/cp1/villes/

  7. Re: Parse error:   Reply   Report abuse  
Picture of Johan Barbier Johan Barbier - 2006-10-18 08:23:01 - In reply to message 6 from melo
Même chose : ton serveur n'a pas PHP5, et tu utilises la classe faite pour PHP5.

  8. Re: Parse error:   Reply   Report abuse  
Picture of melo melo - 2006-10-18 11:19:00 - In reply to message 7 from Johan Barbier
que dois-je faire au juste ?

  9. Re: Parse error:   Reply   Report abuse  
Picture of Johan Barbier Johan Barbier - 2006-10-18 12:54:37 - In reply to message 8 from melo
Dans l'index, tu as ceci je pense :

require_once 'php5/ocity.cls.php';
require_once 'php5/oajax.cls.php';
require_once 'php5/soundex2.cls.php';
require_once 'php5/phonex.cls.php';


/**
*includes pour php4
*
*/
/*
require_once 'php4/ocity.cls.php';
require_once 'php4/oajax.cls.php';
require_once 'php4/soundex2.cls.php';
require_once 'php4/phonex.cls.php';
*/

Tu dois mettre ceci :
/*
require_once 'php5/ocity.cls.php';
require_once 'php5/oajax.cls.php';
require_once 'php5/soundex2.cls.php';
require_once 'php5/phonex.cls.php';
*/

/**
*includes pour php4
*
*/

require_once 'php4/ocity.cls.php';
require_once 'php4/oajax.cls.php';
require_once 'php4/soundex2.cls.php';
require_once 'php4/phonex.cls.php';