note 69081 deleted from ref.filesystem by bjori

From: Date: Wed, 23 Aug 2006 07:32:34 +0000
Subject: note 69081 deleted from ref.filesystem by bjori
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-116195@lists.php.net to get a copy of this message
Note Submitter: nabby86 at yahoo.com Reason: in docs ---- If a file is updated, and in the same script, you get the stats for the file (the mtime/ctime, whatever), it will return the older time for that file, despite the fact that it was just edited in the script. (The problem I was having was: updating a file, shows the old mod-time, but would only show the newer time when refreshed) Use clearstatcache() to get the most updated version, since it's cached by PHP. <? clearstatcache(); $timestamp = filemtime($path); ?>

« previous php.notes (#116195) next »