PDA

View Full Version : fopen failing unexpectedly with an external URL



tanklab
07-23-2004, 01:11 AM
We are moving to this host from another. A few of our PHP pages use fopen to fetch a URL. They are all failing with the error "php_network_getaddresses:getaddrinfo failed".

PHP's settings show that URL fetching with fopen is enabled.

??

wildjokerdesign
07-23-2004, 06:47 AM
There is one thread at the php network site that talks about this.
http://bugs.php.net/bug.php?id=11058

From what I can figure out from all the post it was happening to many when they moved from php 3 to 4 so a pretty old thread but one user did mention they they where able to get it to work by cutting the http:// of the request and simply using www.domain.com. One user was able to get it to work on RH 9 server by doing a service network restart. I don't think it has to do whit php so much as how the server is configured and other things that are available to PHP like DNS and such. Wish I could be more help but maybe one of those might work. Not even sure about the service network restart since not real sure what that does but maybe it might ring a bell with one of the other users to clue them in on what may be happening.