note 16490 added to function.file-exists

From: Date: Thu, 01 Nov 2001 19:46:06 +0000
Subject: note 16490 added to function.file-exists
Groups: php.notes 
Request: Send a blank email to php-notes+get-19989@lists.php.net to get a copy of this message
if you want to check whether a file exists relative to your location, it seems that you need to use './' and quotes eg. this logic would NOT work for me:<p></p> if(file_exists(folder1/file1.html)) whereas this would: if(file_exists("./folder1/file1.html")) -- http://www.php.net/manual/en/function.file-exists.php http://master.php.net/manage/user-notes.php?action=edit+16490 http://master.php.net/manage/user-notes.php?action=delete+16490 http://master.php.net/manage/user-notes.php?action=reject+16490

« previous php.notes (#19989) next »