I'm trying to set up a subscribewithcustom fields, with the php5 code provided by Kaiser Shahid (sample code provided on the API - PHP page. I'm running on PHP5.2.x on Dreamhost servers. When I hit submit I get this error:
Fatal error: Class 'SoapClient' not found in /home/.bellablender/jlnail/jonathannail.com/email/nailbox_subscribe.php on line 16
On line 16, I have this call:
$client = new SoapClient("http://app.campaignmonitor.com/api/api.asmx?wsdl", array('trace' => 1));
Friend of mine tells me that he thinks the SOAP library isn't loading. I thought the ap.asmx?wsdl was the library call. Guess not.
Are you getting the XML at http://app.campaignmonitor.com/api/api.asmx?wsdl ? It is showing for me.
Yes, I'm seeing the XML.
Actually we realized that SOAP isn't installed/activated in the PHP on my server. He's gonna help me do a new build later on. For now I'm going to use the regular POST to add new subscribers to my list.
From Australia to Zimbabwe, and everywhere in between, companies count on Campaign Monitor for email campaigns that boost the bottom line.Get started for free