Connecting Tech Pros Worldwide Help | Site Map

getaddrinfo failed

Steve
Guest
 
Posts: n/a
#1: Jul 17 '05
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.
Janwillem Borleffs
Guest
 
Posts: n/a
#2: Jul 17 '05

re: getaddrinfo failed


Steve wrote:[color=blue]
> 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
> ______________________________
>[/color]

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




Steve
Guest
 
Posts: n/a
#3: Jul 17 '05

re: getaddrinfo failed


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:
[color=blue]
>Steve wrote:[color=green]
>> 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
>> ______________________________
>>[/color]
>
>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
>
>
>[/color]

Closed Thread