When you use the heredoc syntax to delimit a string, you can't have any whitespace preceding the closing delimiter. So you need to do it like this:
Or, just use single quotes to define the string...Code:$xmlstr = <<<XML <AddressValidateRequest USERID="XXXXXXXXX"> <Address ID="0"> <Address1></Address1> <Address2></Address2> <City></City> <State></State> <Zip5></Zip5> <Zip4></Zip4> </Address> </AddressValidateRequest> XML;
Once that's fixed, your next error is "Class 'http' not found."




Reply With Quote