Hi all
I've been playing around with the AWS PHP script here on Websitepublisher.net and have come across a really annoying problem.
It's really basic as well.
For some reason, the script doesn't think there's any XML data, even though the url shows the XML in all its glory.
PHP Code:
$xmlFeed = 'http://xml.amazon.com/onca/xml3?
t=understandi0a-20&
dev-t=D1AOQCL6YUACVK&
BrowseNodeSearch=16272&
mode=books&sort=+pmrank&
offer=All&type=lite&
page=1&f=xml';
echo ('$xmlFeed);
$data = @implode("",file($xmlFeed));
$parser = xml_parser_create();
xml_parser_set_option($parser,XML_OPTION_SKIP_WHITE,1);
xml_parser_set_option($parser,XML_OPTION_CASE_FOLDING,0);
xml_parse_into_struct($parser,$data,$d_ar,$i_ar);
xml_parser_free($parser);
I see the contents of $xmlFeed, but by the time it goes through the @implode function there's no data.
Is there a really obvious reason for this?
Bookmarks