note 36959 added to function.file-exists

From: Date: Tue, 28 Oct 2003 22:28:19 +0000
Subject: note 36959 added to function.file-exists
Groups: php.notes 
Request: Send a blank email to php-notes+get-59443@lists.php.net to get a copy of this message
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."); } ?> ---- Manual Page -- http://www.php.net/manual/en/function.file-exists.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+36959 Delete -- http://master.php.net/manage/user-notes.php?action=delete+36959&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+36959&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#59443) next »