PHP Classes

Parse error Problem

Recommend this page to a friend!

      SMTP  >  All threads  >  Parse error Problem  >  (Un) Subscribe thread alerts  
Subject:Parse error Problem
Summary:syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T
Messages:4
Author:Farzin pashaee
Date:2009-04-19 06:40:16
Update:2010-02-08 15:39:38
 

  1. Parse error Problem   Reply   Report abuse  
Picture of Farzin pashaee Farzin pashaee - 2009-04-19 06:40:16
when i make a new class i recive this Parse error

Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in
...\wwwroot\fa\mail\mail_class.php on line 3

  2. Re: Parse error Problem   Reply   Report abuse  
Picture of Ivan Priorov Ivan Priorov - 2009-12-08 19:41:21 - In reply to message 1 from Farzin pashaee
Line 3: private $smtpServer = 'you.smtp_server.com';
You changed the line?
Maybe you make a syntax error

  3. Re: Parse error Problem   Reply   Report abuse  
Picture of Hans Dampf Hans Dampf - 2010-01-05 18:01:46 - In reply to message 2 from Ivan Priorov
Hello.
I have the same Error and i searched for the Error but it isn´t a Syntax Error. Do you have an Idea, what kind of Error it could be?

Kind Regards,

jörg

  4. Re: Parse error Problem   Reply   Report abuse  
Picture of Ivan Priorov Ivan Priorov - 2010-02-08 15:39:38 - In reply to message 3 from Hans Dampf
Hi!
Perhaps this is due to the UTF8 BOM
Please check the file encoding.
If the problem persists, contact me.
Thank you!