getaddrinfo failed

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Steve

    getaddrinfo failed

    Visitors to my site have been getting a random error. It's been
    happening more and more frequently lately.
    _______________ _______________
    Warning: Unknown(): php_network_get addresses: 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

    #2
    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_get addresses: 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




    Comment

    • Steve

      #3
      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.c om> 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_get addresses: 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]

      Comment

      Working...