I just change my server i have a dedicated server but now my site show this error:

Warning: readfile(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/intercam/public_html/ens/includes/derechan.php on line 6

the line in question has:
<? readfile("http://www.intercampusweb.com/interamigos/clasificados.php") ?>

my php is not running on safe mode, anyone knows how can this work as it did on my other server?

thanks.

    Url? Can you use a url there?

    Tip: You can use a URL as a filename with this function if the fopen wrappers have been enabled. See fopen() for more details on how to specify the filename and Appendix L for a list of supported URL protocols.

    http://be2.php.net/readfile

    Try it with a full path and see what results you get...

      Did that but now the code include doesn't compile i mean it shows the raw php code without executing it

        How about posting some code for us to see what's happening? You sure you have your <?php tags in there? Sure you want to be using 'readfile' ?

          Look how in this server works great (images not showing 'cause are no longer on that location but script works fine).

          http://66.225.237.219/~intercam/ens/includes/oldserver.php

          now same code on the new one:
          (shows the errors after like 25 seconds)
          http://intercampusweb.com/ens/includes/newserver.php

          The code for same files is here:
          http://intercampusweb.com/ens/includes/code.txt

          as you can see the error is just that this command not working:

          <? readfile("http://www.intercampusweb.com/interamigos/clasificados.php") ?>

          <? readfile("http://www.intercampusweb.com/interamigos/includepic.php") ?>

          <?
          readfile("http://www.intercampusweb.com/interamigos/miembros.php")
          ?>

            Problem is that when i restart my server the DNS/Name Server (BIND) process does not start so i need to go in my whm panel and under services restart it manually... that get it's working.

            any permanent fix idea?

              Write a Reply...