The Community is hosting an End of Summer sweepstakes! Participants must complete tasks to earn tickets that will enter them with a chance to win a free year of Constant Contact and other great prizes!*
*No Purchase Necessary. For Official Rules, visit here. Constant Contact’s End of Summer 2020 Sweepstakes ends on October, 20, 2020 at 11:50 PM EST.

problems with sample php script

Highlighted
New Member

problems with sample php script

I am having some problems with adding the sample php script.


 


Here is a link to where I uploaded my sample script. I added my api key and user name info etc., but did not alter anything else.


 


http://creativefreedom.com/PHP_Sample_Signup_Forms/simple_form.php


 


As you can see you get a blank page...so just to see what would happen, I put the exact same files on a different website to test it...


 


http://blenderhousecreative.com/PHP_Sample_Signup_Forms/simple_form.php


 


and here it shows up fine? It is the exact same script in the exact same location.


 


Any ideas what could be causing this?


 


Thanks so much for your help.


 

1 REPLY 1
Highlighted
Employee

Provided that they are

Provided that they are identical installations on different servers I would say that the difference is caused by the server configuration. Chances are that there is an error occurring due to the version of PHP or Apache. These errors may not be displayed due to the error settings in the PHP ini file.


 


Our API sample script does require PHP 5. If you would like to see what your current server configuration is you can create a new php file with this code and read through the information.


<?php

     echo phpinfo();

?>


 


Depending on what your current configuration is and what access you have to modify/upgrade the system you may be able to resolve this.

Dan H

Support Engineer, Constant Contact

Developer Portal

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

Visit Page

Constant Contact 2020 End of Summer Community Sweepstakes!

The Constant Contact User Community is hosting a sweepstakes. The more you participate, the more chances you have to win! Read on to learn more...

Read More
Featured