syntax error, unexpected T_CLASS in cc_class.php on line 1

Regular Participant

syntax error, unexpected T_CLASS in cc_class.php on line 1

I'm getting this error:


Parse error: syntax error, unexpected T_CLASS in cc_class.php on line 1


Debug = True


Contact List = array();


Force List = False


Show List = True

Harish S.

2 REPLIES 2
Moderator

This error typically indicates you are using an older version of PHP.  Our examples require PHP 5 or higher, this error is usually only seen in PHP 4 or earlier.  If you are using PHP 4 or earlier, we do not offer code samples.  There is a developer who sells a PHP 4 compatible package named James Benson, you can find his information here.

Dave Berard
Senior Product Manager, Constant Contact
Regular Participant

The site is hosted on GoDaddy and I've checked the PHP version its 5.2.8. So what could be the problem?

Harish S.

Developer Portal

View API documentation, code samples, get your API key.

Visit Page