note 87754 added to function.filemtime

From: Date: Fri, 19 Dec 2008 16:44:40 +0000
Subject: note 87754 added to function.filemtime
Groups: php.notes 
Request: Send a blank email to php-notes+get-148350@lists.php.net to get a copy of this message
The example script should give you the name of the file not the variable. I updated the echo statement to give the script below: <?php // outputs e.g. somefile.txt was last modified: December 29 2002 22:16:23. $filename = 'somefile.txt'; if (file_exists($filename)) { echo $filename . " was last modified: " . date ("F d Y H:i:s.", filemtime($filename)); } ?> Chris ---- Server IP: 92.48.74.199 Probable Submitter: 129.11.76.230 (proxied: 129.11.44.219) ---- Manual Page -- http://www.php.net/manual/en/function.filemtime.php Edit -- https://master.php.net/note/edit/87754 Del: integrated -- https://master.php.net/note/delete/87754/integrated Del: useless -- https://master.php.net/note/delete/87754/useless Del: bad code -- https://master.php.net/note/delete/87754/bad+code Del: spam -- https://master.php.net/note/delete/87754/spam Del: non-english -- https://master.php.net/note/delete/87754/non-english Del: in docs -- https://master.php.net/note/delete/87754/in+docs Del: other reasons-- https://master.php.net/note/delete/87754 Reject -- https://master.php.net/note/reject/87754 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#148350) next »