note 27964 added to function.file-exists
| From: | Nicholas at rack1 dot php dot net | Date: | Fri, 27 Dec 2002 16:43:00 +0000 |
| Subject: | note 27964 added to function.file-exists | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-41350@lists.php.net to get a copy of this message | ||
You can also negate file_exists() by using !file_exists()
example:
<?
$page = $_SERVER['QUERY_STRING'];
if (!file_exists($page) || $page == '') {
print "File Not Found";
}
?>
--
http://www.php.net/manual/en/function.file-exists.php
http://master.php.net/manage/user-notes.php?action=edit+27964
http://master.php.net/manage/user-notes.php?action=delete+27964
http://master.php.net/manage/user-notes.php?action=reject+27964