PHP: FedEx Web Services -
i'm trying track number uses fedex, can't series of events shown in website. i'm using track web services , using test key. i'm using
$response->completedtrackdetails->trackdetails->events
which gives me first step (out of total of 9). please, doing wrong.
i'm not sure how you're parsing xml response, need loop thru trackreply->trackdetails->events
something this...
$scancount = substr_count ($response, '<events>') ; $xmlresult = xml2array($response); if ( $scancount > 1 ) { ( $i=0 ; $i < $scancount ; $i++) { $status=$xmlresult['trackreply']['trackdetails']['events'][$i]['eventdescription']['value']; // addl parsing... } }