gimp
03-30-2005, 03:06 PM
Hi, I'm trying to run a php script I wrote up, and I keep getting errors which say:
Warning: fopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/../getItems.php on line 313
...
Warning: fopen(http://webservices.amazon.com/onca/xml?...): failed to open stream: Success in /home/.../getItems.php on line 313
I get this error about 4 out of every 5 times I try to load the page. It's really quite annoying, and I don't know what could be going wrong, other than perhaps there's a server problem.
This started happening to me over the weekend, but then it went away for a couple of days (Mon, Tues), and now it is happening again. I've tried running my script on another server with another provider and it works just fine.
Line 313 is pretty simple and it looks like this:
if ($fp=fopen($queryURL,'r')) {
where $queryURL is a string such as "http://webservices.amazon.com/onca/xml?...Attributes"- basically, I'm making an outgoing call to the amazon webservices protocol.
Does anyone have any idea what might be going wrong???
Is this a known problem, or is anyone else having similar problems?
Thanks
Warning: fopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/../getItems.php on line 313
...
Warning: fopen(http://webservices.amazon.com/onca/xml?...): failed to open stream: Success in /home/.../getItems.php on line 313
I get this error about 4 out of every 5 times I try to load the page. It's really quite annoying, and I don't know what could be going wrong, other than perhaps there's a server problem.
This started happening to me over the weekend, but then it went away for a couple of days (Mon, Tues), and now it is happening again. I've tried running my script on another server with another provider and it works just fine.
Line 313 is pretty simple and it looks like this:
if ($fp=fopen($queryURL,'r')) {
where $queryURL is a string such as "http://webservices.amazon.com/onca/xml?...Attributes"- basically, I'm making an outgoing call to the amazon webservices protocol.
Does anyone have any idea what might be going wrong???
Is this a known problem, or is anyone else having similar problems?
Thanks