I just downloaded the PHP Sample Forms and tried to use them, but am getting parse errors when I try to do any of the operations (List all contacts, etc.).
Here's what I'm getting for most of the operations:
Parse error: syntax error, unexpected ';', expecting T_FUNCTION in /home/content/m/e/t/metrovino/html/PHP_Sample_Signup_Forms/cc_class.php on line 1
The "Add a new Contact [Full Form] " is a bit different:
Parse error: syntax error, unexpected $end in /home/content/m/e/t/metrovino/html/PHP_Sample_Signup_Forms/add_contact.php on line 1
I get these errors when I put in my login, password and apikey, and even when I just use the code without changing anything.
I noticed in the readme that version 1.1 was released yesterday. Could there be a problem with it? An extra semicolon removed by accident?
Hi, The second error is
Hi,
The second error is likely produced because of the first error, can you post your code here (with personal details removed).
It sounds like you have an extra semicolon in the top of cc_class.php, I have the version 1 code but do not see that error myself.
Perhaps you should try version 1.1?
James Benson, PHP Developer.
Constant Contact Services: http://integrationservic.es/
I just downloaded the latest
I just downloaded the latest upate from today (1.0.2) and the errors are still occuring. I figured the update couldn't be released without it working for someone, so I uploaded the code to a different site and it works there.
Any ideas why I would get parse errors on one server and not on another?
The errors you receive are
The errors you receive are not fatal errors so the script carries on running after it produces those errors where as if they was fatal it would halt the script.
Likely you do not see the errors on your other server because the display error setting is turned off on that server.
James Benson, PHP Developer.
Constant Contact Services: http://integrationservic.es/