note 70628 added to function.file-exists

From: Date: Sun, 22 Oct 2006 12:53:28 +0000
Subject: note 70628 added to function.file-exists
Groups: php.notes 
Request: Send a blank email to php-notes+get-118970@lists.php.net to get a copy of this message
if you want to check, if a file still exists, created and deleted by another process and not of your own script, think of the caching which is used for file_exists() if you have something like this: echo "wait"; while(file_exists("googlenews/google.txt")) { echo "."; sleep(mt_rand(3,7)); clearstatcache(); } and forget the clearstatcache() call, it will loop forever. greets, nils ps: read manuals carefully ;) ---- Server IP: 217.174.203.10 Probable Submitter: 89.53.239.37 ---- Manual Page -- http://www.php.net/manual/en/function.file-exists.php Edit -- https://master.php.net/note/edit/70628 Del: integrated -- https://master.php.net/note/delete/70628/integrated Del: useless -- https://master.php.net/note/delete/70628/useless Del: bad code -- https://master.php.net/note/delete/70628/bad+code Del: spam -- https://master.php.net/note/delete/70628/spam Del: non-english -- https://master.php.net/note/delete/70628/non-english Del: in docs -- https://master.php.net/note/delete/70628/in+docs Del: other reasons-- https://master.php.net/note/delete/70628 Reject -- https://master.php.net/note/reject/70628 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#118970) next »