note 64595 added to function.clearstatcache

From: Date: Wed, 19 Apr 2006 04:28:49 +0000
Subject: note 64595 added to function.clearstatcache
Groups: php.notes 
Request: Send a blank email to php-notes+get-108490@lists.php.net to get a copy of this message
to check if a file exist and returns true... or false, it doesn't matter. calling clearstatcache() function will not hurt. if (file_exists($uploadpath.$filename) == TRUE) { $_SESSION['clearcache'] = TRUE; clearstatcache(); } else { $_SESSION['clearcache'] = FALSE; clearstatcache(); } or, check if clearstatcaches() function is already called or not... if ((file_exists($uploadpath.$filename) == TRUE) || (isset(clearstatcache()))) { $_SESSION['clearcache'] = TRUE; clearstatcache(); } else { $_SESSION['clearcache'] = FALSE; clearstatcache(); } ---- Server IP: 66.163.161.117 Probable Submitter: 203.131.173.106 (proxied: 10.2.2.98) ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.clearstatcache.php Edit -- http://master.php.net/note/edit/64595 Del: integrated -- http://master.php.net/note/delete/64595/integrated Del: useless -- http://master.php.net/note/delete/64595/useless Del: bad code -- http://master.php.net/note/delete/64595/bad+code Del: spam -- http://master.php.net/note/delete/64595/spam Del: non-english -- http://master.php.net/note/delete/64595/non-english Del: in docs -- http://master.php.net/note/delete/64595/in+docs Del: other reasons-- http://master.php.net/note/delete/64595 Reject -- http://master.php.net/note/reject/64595 Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#108490) next »