filectime not updating<

liunx

Guest
I have this at the bottom of a PHP page:

This page last updated: <?php echo date("jS M H:i", filectime('index.php')); ?>

But it just shows one date every time, which was probably the first time I ran this PHP. Why's it doing this?I thought you had to use filemtime() (<!-- m --><a class="postlink" href="http://www.php.net/manual/en/function.filemtime.php">http://www.php.net/manual/en/function.filemtime.php</a><!-- m -->) for thatSeems so, it works. So what's the difference between filectime and filemtime?filectime looks for when the permissions on a file where last changed (write, read, group.

fileatime looks when a file was last accessed.Ooooh right, I got it now.
 
Back
Top