stevenvh
08-23-2009, 10:22 AM
Hi,
I want to place the file's creation date at the bottom of my pages.
$filedate = filemtime($thisfile);
if ($filedate > 0) {
print "Last modified: " . date("Y-m-d", $filedate);
}
For some reason for some files I get a "stat failed" warning. I thought I could test for the returned filedate, and only print when valid, but then the warning still appears. How can I get rid of it?
TIA
Steven
I want to place the file's creation date at the bottom of my pages.
$filedate = filemtime($thisfile);
if ($filedate > 0) {
print "Last modified: " . date("Y-m-d", $filedate);
}
For some reason for some files I get a "stat failed" warning. I thought I could test for the returned filedate, and only print when valid, but then the warning still appears. How can I get rid of it?
TIA
Steven