note 43823 added to function.file-exists

From: Date: Mon, 05 Jul 2004 12:37:45 +0000
Subject: note 43823 added to function.file-exists
Groups: php.notes 
Request: Send a blank email to php-notes+get-72606@lists.php.net to get a copy of this message
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 ---- Manual Page -- http://www.php.net/manual/en/function.file-exists.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+43823 Delete -- http://master.php.net/manage/user-notes.php?action=delete+43823&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+43823&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#72606) next »