note 39812 added to function.getlastmod

From: Date: Wed, 11 Feb 2004 13:53:34 +0000
Subject: note 39812 added to function.getlastmod
Groups: php.notes 
Request: Send a blank email to php-notes+get-65012@lists.php.net to get a copy of this message
If getlastmod() doesn't work, there is another possibility to output the last modification. You can use the function filemtime() (description: http://de.php.net/manual/de/function.filemtime.php (german)), which returns the timestamp of the last modification. e.g., you may use this: <?php // outputs s.th. like this: 11 February 2004 echo date("d n Y", filemtime("index.php")); ?> I found this out as I tried to use getlastmod() but it didn't work... Have a lot of fun ---- Manual Page -- http://www.php.net/manual/en/function.getlastmod.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+39812 Delete -- http://master.php.net/manage/user-notes.php?action=delete+39812&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+39812&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#65012) next »