PHP Classes

Error

Recommend this page to a friend!

      PHP OCR Class  >  All threads  >  Error  >  (Un) Subscribe thread alerts  
Subject:Error
Summary:parse error in OCR.class.php on line 18
Messages:6
Author:daniel
Date:2006-08-18 10:57:21
Update:2009-09-18 08:39:18
 

  1. Error   Reply   Report abuse  
Picture of daniel daniel - 2006-08-18 10:57:21
All I did was unpackage in a folder, make storage writable, and run example.php. Here is the full error:

Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /XXXX/XXX/ocr/OCR.class.php on line 18

  2. Re: Error   Reply   Report abuse  
Picture of Edge Edge - 2006-10-15 14:33:59 - In reply to message 1 from daniel
it's for PHP5 not for PHP4.
However if you manually replace "Private" keyword to "Var", delete all "Public", "Static" before each "Function", this class will work..

,-)

  3. Re: Error   Reply   Report abuse  
Picture of Marko Stamcar Marko Stamcar - 2007-01-24 22:56:57 - In reply to message 2 from Edge
Thanks for the tip :)

Also, when using find & replace:

private $ --> var $
private --> [remove]

  4. can anybody tell me what error is this?   Reply   Report abuse  
Picture of mohd idris mohd idris - 2008-07-01 14:59:12 - In reply to message 3 from Marko Stamcar
Parse error: parse error, unexpected T_CLASS in C:\wamp\www\phpocr-2006-02-10\example.php on line 13

  5. Re: Error   Reply   Report abuse  
Picture of Model Locate Model Locate - 2009-09-01 22:52:56 - In reply to message 2 from Edge
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /home/modelloc/public_html/ocr/char.object.php on line 16

  6. Re: Error   Reply   Report abuse  
Picture of Mario Sauer Mario Sauer - 2009-09-18 08:39:18 - In reply to message 5 from Model Locate
do the same replacemnts in char.object.php to run the script width PHP4