note 782 modified in filemtime by ronabop

From: Date: Mon, 02 Oct 2000 10:37:58 +0000
Subject: note 782 modified in filemtime by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-5883@lists.php.net to get a copy of this message
I was trying to figure out how to glean a simple "file last modified" time/date stamp while experimenting with PHP on Win95 (shudder) with PWS. filemtime() returned Unix epoch time in seconds. Here is a solution to get the 12 hour time and standard date format, for what its worth: $filemod = filemtime(__FILE__); $filemodtime = date("F j Y h:i:s A", $filemod); Print("File last modified $filemodtime"); This will output the month, day of month, year and time (12 hour format) of the file's last modification. http://www.php.net/manual/function.filemtime.php

« previous php.notes (#5883) next »