Mailinglisten-Archive |
Markus Ostertag wrote:
> also ich habe irgendwie ein Problem mit "filemtime".
> Ich denke es ist ganz simpel zu lösen, doch ich komme einfach
> nicht drauf...
Bitte stets auch die Annotations im Online-Manual lesen:
" 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.php3
Ulf
--
Ulf Wendel
NetUSE Kommunikationstechnologie GmbH
Siemenswall, D-24107 Kiel, Germany
Fon: +49 431 386435 00 -- Fax: +49 431 386435 99
php::bar PHP Wiki - Listenarchive