Hi, i'm new to this forum but hope you guys can help me out. I'm trying to get some book information from an ISBN number but i cant get any results to print out. The $request has values and so does the $data array but i cant output any of the information...
Here is what ive got so far:
$AWSAccessKeyId = "MY_CODE_HERE";
$AssociateTag = "";
$Version = "";
$Operation = "ItemLookup";
$SearchIndex = "Books";
// ItemID: is a test ISBN number
$ItemId = "1843151022";
$ResponseGroup = "Medium";
I'm having a problem with this code now on another machine, im running it locally using the same code but now its not working and i get the following error:
Warning: file_get_contents(http://ecs.amazonaws.com/onca/xml?Se...seGroup=Medium) [function.file-get-contents]: failed to open stream: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. in C:\Inetpub\wwwroot\Library\lookup.php on line 52
Fatal error: Maximum execution time of 30 seconds exceeded in C:\Inetpub\wwwroot\Library\lookup.php on line 52
Any ideas why this wouldnt work on another computer?
can your internet connection cause this error?
file_get_contents() does support opening of remote files from the local machine - I use it here on my local laptop all the time - just need to make sure that the fopen wrappers are enabled
Mike: Are you able to try using file_get_contents() to open another website/url from the new machine? It looks to me like a firewall or somthing may be blocking it, or perhaps Amazon was just down or on a go slow when you tested it?