note 95986 added to function.filemtime

From: Date: Mon, 01 Feb 2010 19:09:49 +0000
Subject: note 95986 added to function.filemtime
Groups: php.notes 
Request: Send a blank email to php-notes+get-165572@lists.php.net to get a copy of this message
While testing on Windows, I noticed that the precision of filemtime is just 1 second. So if you use clearstatcache() and filemtime() to check if a file has been modified, it might fail to detect the change. The modifications just have to happen within less than a second. (I ran into this with Apache on Windows XP.) ---- Server IP: 85.214.154.209 Probable Submitter: 79.222.59.242 ---- Manual Page -- http://www.php.net/manual/en/function.filemtime.php Edit -- https://master.php.net/note/edit/95986 Del: integrated -- https://master.php.net/note/delete/95986/integrated Del: useless -- https://master.php.net/note/delete/95986/useless Del: bad code -- https://master.php.net/note/delete/95986/bad+code Del: spam -- https://master.php.net/note/delete/95986/spam Del: non-english -- https://master.php.net/note/delete/95986/non-english Del: in docs -- https://master.php.net/note/delete/95986/in+docs Del: other reasons-- https://master.php.net/note/delete/95986 Reject -- https://master.php.net/note/reject/95986 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#165572) next »