note 36959 deleted from function.file-exists by didou

From: Date: Tue, 10 Feb 2004 11:48:30 +0000
Subject: note 36959 deleted from function.file-exists by didou
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-64944@lists.php.net to get a copy of this message
Note Submitter: jon@cretinoid.com ---- If you are trying to check whether a remote file (or url) exists, you can open it and close it in the same statement. <?php if (@fclose(@fopen("http://www.example.com", "r"))) { print("File exists."); } else { print("File does not exist."); } ?>

« previous php.notes (#64944) next »