Re: [PHP] fopen(); deciding if going for the IP or domain.

2002-06-30 Thread Chris Hewitt
The manual shows fopen("http://www.php.net/","r";) works. If you are saying it is only today that it is not working then I wonder if the server (or dns server for it) is down. If on unix, does "dig domain.com" give an ANSWER section with ip address? If on NT, does "nslookup domain.com" give an

[PHP] fopen(); deciding if going for the IP or domain.

2002-06-30 Thread php
Hello, Is there anyway I can do fopen to try to open a connection to a domain name, if it cant try opening it to the IP? For some weird reason today a domain name wont resolve and Iam getting this error: Warning: php_network_getaddresses: getaddrinfo failed: Name or service not known Thanks.