PHP Classes

error msg

Recommend this page to a friend!

      PHP Debugger  >  All threads  >  error msg  >  (Un) Subscribe thread alerts  
Subject:error msg
Summary:Error in Usage
Messages:4
Author:Bill Wilson
Date:2006-11-07 14:11:39
Update:2006-11-19 14:37:28
 

  1. error msg   Reply   Report abuse  
Picture of Bill Wilson Bill Wilson - 2006-11-07 14:11:39
I receive the following error msg when I try to use this class.

PHP Stack trace:
PHP 1. {main}() /home/opta/www/opta_fetch.php:0
PHP Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/opta/www/PhpDebugger.inc.php on line 10

  2. Re: error msg   Reply   Report abuse  
Picture of Er. Rochak Chauhan Er. Rochak Chauhan - 2006-11-07 15:15:10 - In reply to message 1 from Bill Wilson
I guess you are using PHP 4. In that case, just remove all the PRIVATE, PUBLIC and PROTECTED keywords from the class. Also please prefix "VAR" key word infront of all variables declared in the class.

If you still face any problem, let me know.

  3. Re: error msg   Reply   Report abuse  
Picture of Connie Müller Connie Müller - 2006-11-19 14:23:46 - In reply to message 2 from Er. Rochak Chauhan
Hi!

I would suggest to note this in the comment at the start of the file
it is not so easy for a newbie to find all this and to correct it..

I always find it helpful to see exactly the needs and standards of a program...


have a nice day,
Connie

  4. Re: error msg   Reply   Report abuse  
Picture of Er. Rochak Chauhan Er. Rochak Chauhan - 2006-11-19 14:37:28 - In reply to message 3 from Connie Müller
Point well noted !!
Thanks for the feedback :)