Getting PHP error in store-address.php

113 views
Skip to first unread message

PHPWEBDEV

unread,
Feb 26, 2014, 10:09:15 PM2/26/14
to mailchimp-...@googlegroups.com
Hello,
             I am using MCAPI class for mailchimp & I am calling store-address.php as below from my form.

<span id="response"><?php
require_once('inc/store-address.php');
if(isset($_GET['submit'])){
    echo storeAddress();
}

?></span>

But it produces following error on my server.

Parse error: syntax error, unexpected 'storeAddress' (T_STRING) in /public_html//inc/store-address.php on line 1

The same thing is working on my local machine.

Server PHP Version : 5.4.24

Local PHP Version : 5.3.5

Any help will be appreciated.

Thanks in advance.


phol...@rsglab.com

unread,
Mar 3, 2014, 10:49:45 AM3/3/14
to mailchimp-...@googlegroups.com
Hello,
Syntax errors are typically errors in your code and not problems with the libraries themselves. 

If you're sure that's not the case, please email api...@mailchimp.com -- as of today, this group is closed to new messages (see this post for more details). 

Thanks,

-Pete
Reply all
Reply to author
Forward
0 new messages