By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,664 Members | 1,656 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,664 IT Pros & Developers. It's quick & easy.

getaddrinfo failed

P: n/a
Visitors to my site have been getting a random error. It's been
happening more and more frequently lately.
______________________________
Warning: Unknown(): php_network_getaddresses: getaddrinfo failed: Name
or service not known in /home/httpd/vhosts/domain.com/file1.php(394) :
eval()'d code on line 16
______________________________

It seems I get this error from a line like:
______________________________
require("http://www.domain.com/file2.php");
______________________________

I did a search but nothing helpful has come up. Anyone know what could
be causing this?

Thanks.
Jul 17 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
Steve wrote:
Visitors to my site have been getting a random error. It's been
happening more and more frequently lately.
______________________________
Warning: Unknown(): php_network_getaddresses: getaddrinfo failed: Name
or service not known in /home/httpd/vhosts/domain.com/file1.php(394) :
eval()'d code on line 16
______________________________


This is one of the reason's why you shouldn't use eval, it makes debugging
very difficult.

Is there a particular reason that you are using it?

Anyway, the error probably originates from a call to fopen or fsockopen to a
host which doesn't respond.
JW


Jul 17 '05 #2

P: n/a
Thanks for the response.

The eval line is part of my forum script... it calls on a file that
allows me to run my own PHP script on each page. The file is located
on the same host.
On Sun, 11 Jul 2004 16:17:53 +0200, "Janwillem Borleffs"
<jw@jwscripts.com> wrote:
Steve wrote:
Visitors to my site have been getting a random error. It's been
happening more and more frequently lately.
______________________________
Warning: Unknown(): php_network_getaddresses: getaddrinfo failed: Name
or service not known in /home/httpd/vhosts/domain.com/file1.php(394) :
eval()'d code on line 16
______________________________


This is one of the reason's why you shouldn't use eval, it makes debugging
very difficult.

Is there a particular reason that you are using it?

Anyway, the error probably originates from a call to fopen or fsockopen to a
host which doesn't respond.
JW


Jul 17 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.