Help - Search - Members - Calendar
Full Version: PHP File handling errors?
Invision Power Services > Community Forums > Community Web Design and Coding
Danny
I keep getting 5 PHP errors when i'm opening and reading two files:


Warning: fopen(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/flaio/public_html/more/index.php on line 21

Warning: fopen(http://flaio.com/ver.html): failed to open stream: Permission denied in /home/flaio/public_html/more/index.php on line 21

Warning: fgets(): supplied argument is not a valid stream resource in /home/flaio/public_html/more/index.php on line 23

Warning: file_get_contents(): php_network_getaddresses: getaddrinfo failed: Name or service not known in /home/flaio/public_html/more/index.php on line 36

Warning: file_get_contents(http://flaio.com/index.php?act=rss&feed=titles): failed to open stream: Permission denied in /home/flaio/public_html/more/index.php on line 36

On my localhost, running PHP 5.0.3 it works perfectly fine. However, when I put it on my server, which is running PHP 4.3.11, I get the 5 above errors. Can someone explain to me what they mean/how to fix them?

EDIT: I know that the one file is broken, but that is because I edited it to keep some security on the server. In real life the file exists.
Stephen
it seems your server can't resolve domain names (no DNS?) so it can't connect to the remote server. you'll have to use the IP address instead of flaio.com
Danny
Thanks. When I did that it got rid of all the errors. biggrin.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.