Page 1 of 1
Get a file's date and time
Posted: Thu Jun 02, 2005 5:35 pm
by rashedkarim
How can i make php get a file's (on the server) creation time/date?
Posted: Thu Jun 02, 2005 5:45 pm
by Burrito
I'm pretty sure on a windows server you can't get the creation date/time.
you can use
stat() to get other information, but I don't believe you can get the creation date. If you're using unix, I remember reading a while back taht you can hack your way into determining the creation date, but I don't recall where.
try searching this forum for "file creation date"
Posted: Fri Jun 03, 2005 1:03 am
by Syranide
"filemtime" does the job, for getting time of last modification (should work on Windows as far as I know)
However creation time is not available though as far as I know, not available on Linux I believe...
Posted: Fri Jun 03, 2005 3:39 am
by Chris Corbyn
Syranide wrote:However creation time is not available though as far as I know, not available on Linux I believe...
Doesn't
filectime() do this?
Posted: Fri Jun 03, 2005 3:48 am
by Syranide
filectime -- Gets inode change time of file
nope!
