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

Highlighted
Occasional 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
Highlighted
Moderator

This error typically

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
Highlighted
Occasional Participant

The site is hosted on GoDaddy

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

Register for our "Making Sense of Online Marketing for Retail" Webinar

Join us on Thursday, August 13th at 2pm ET for a free webinar where we'll discuss how to incorporate online marketing into your retail store.

Read More
Featured