note 69080 deleted from function.clearstatcache by bjori
| From: | bjori@php.net | Date: | Wed, 23 Aug 2006 07:32:26 +0000 |
| Subject: | note 69080 deleted from function.clearstatcache by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-116194@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)
<?
clearstatcache();
$timestamp = filemtime($path);
?>