note 782 deleted from function.filemtime by philip

From: Date: Mon, 30 Dec 2002 06:49:41 +0000
Subject: note 782 deleted from function.filemtime by philip
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-41453@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.

« previous php.notes (#41453) next »