note 43823 deleted from function.file-exists by tomsommer

From: Date: Mon, 05 Jul 2004 12:42:16 +0000
Subject: note 43823 deleted from function.file-exists by tomsommer
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-72607@lists.php.net to get a copy of this message
Note Submitter: jiquera ---- here is a way more simple function for remote file checking... it will give a wrong result if the remote site has a custom 404 page, but the example above will fail to in that case function remoteFileExists($url) { return @fclose(fopen($url,r)); } i work only with "older" versions of php so i dont know it this trick is supported in the newer versions

« previous php.notes (#72607) next »