note 31732 deleted from function.fopen by alindeman

From: Date: Sat, 17 May 2003 21:09:54 +0000
Subject: note 31732 deleted from function.fopen by alindeman
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-48272@lists.php.net to get a copy of this message
Note Submitter: Eugene Two issues with the fopen() function: In PHP 4.2.3, if you try to fopen() a URL, you get this error: php_network_getaddresses: getaddrinfo failed: host/servname not known If you try to fopen() a URL that does not exist, you get this error: fopen("http://www.joemama.com/nonexistentfile.php", "r") - Error 0 ... but according to the documentation here, fopen() should return false if the file does not exist, rather than generating a warning.

« previous php.notes (#48272) next »