Page 2 of 2

Posted: Fri Jun 13, 2003 2:31 pm
by matthiasone
I ended up have to modify that script just a little to make it work.


From this:

Code: Select all

foreach ($svc as $s) { 
        if ($s === 'Parcel') $m = sauship_xmltag('Machinable',0,$machinable,1)."\n"; 
        else $m = '';

to this

Code: Select all

foreach ($svc as $s) { 
        if ($s === 'Parcel') $m = sauship_xmltag('Machinable',0,$machinable,1)."\n"; 
        else $m = sauship_xmltag('Machinable',0,$machinable,1)."\n";

Posted: Fri Jun 13, 2003 2:49 pm
by Stoker
chad, most important thing is to find out if you have curl installed and working! If not, the UPS will require many changes.. The USPS part can be easily changed to use file() or fopen() instead.

If you have curl, turn debugging on and look at what is produced.. Bothe the UPS and the USPS API gives error messages back if something is wrong...