I am somewhat new to the world of PHP and REST requests...
I am using php v4.4.2 on a SHARED server.
Currently, I need to know how to access the variables that are returned from this code:
$url= "http://webservices.amazon.com/onca/xml?Service=AWSECommerceService&SubscriptionId=1E3R5HVJWYX4PXS3R382&Operation=ItemLookup&ResponseGroup=Medium&AssociateTag=afterhighsc06-20&ItemId=0385504209";
$c = curl_init($url);
curl_setopt($c, CURLOPT_RETURNTRANSFER, 1);
$result = curl_exec($c);
curl_close($c);
if you go to the url shown above, you will see the code in xml...
Of course, I could just use:
$result = file_get_contents($url);
either way, I need to know, what do I do to access the variables that are returned?
Currently, I am using:
$items = $result->Items->Item;
but I know this is WRONG because I et no error and NO TEXT.
WHAT DO I NEED TO DO IN BETWEEN?