note 47007 deleted from function.file-exists by nlopess

From: Date: Sat, 30 Oct 2004 11:27:21 +0000
Subject: note 47007 deleted from function.file-exists by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-79353@lists.php.net to get a copy of this message
Note Submitter: regs-phpnet at domain kanuso.net ---- In response to flobee at gmx dot net : file_exists: "Note: The results of this function are cached. See clearstatcache() for more details." clearstatcache: "You should also note that PHP doesn't cache information about non-existent files. So, if you call file_exists() on a file that doesn't exist, it will return FALSE until you create the file. If you create the file, it will return TRUE even if you then delete the file." So if the file exists, your 500 cycles loop will only check whether the file exists one time. The other 499 cycles will just check an internal php cache. If the file doesn't exist, php will check it all of the 500 cycles.

« previous php.notes (#79353) next »