filmetime() returns 01/14/1970...
Posted: Wed Feb 13, 2008 1:18 pm
In a file directory listing, the following code is returning false, or worse, 01/14/1970 not even 01/01/1970 (Unix Epoch time)
Within this script the other components, basename() an filesize() work fine:
I also tried passing getlastmod() and it returns 12/31/1969.
I tried converting the unix time with
And this returns null -- nothing shows up.
Could anyone help me resolve this issue??
Code: Select all
$date = filemtime($dirStr."/".$file);Code: Select all
$name = basename($dirStr."/".$file);
$size = filesize($dirStr."/".$file);I tried converting the unix time with
Code: Select all
$date = filemtime($dirStr."/".$file);
$normdate = date("m/d/Y", $date);Could anyone help me resolve this issue??