August 16th, 2000, 12:31 PM
I need to show the last time a file has been modified, and filemtime() only shows the number of seconds since Jan. 1, 1970...
Is there a function to output this as a real date (dd-mm-yyyy) ??
August 17th, 2000, 06:17 AM
With the getdate() function ofcourse.
echo $current_date["hours"]; etc.
Check PHP manual at www.php.net
August 17th, 2000, 08:52 AM
Or, if you're feeling extra lazy, use date().
echo date("dd/mm/yy h:ia",filemtime(filename));
To alcohol! The cause of, and solution to, all of life's problems. -- Homer Simpson