View Full Version : Get Last Date Modified

11-10-2004, 11:49 PM

I'm attempting to make a script to get the date that i got the file. It's going to be a list of the newest files in my downloads. I'm not using a db w/this and using a db is not an option. I just want to know if it was possible to get the time i downloaded a file (would it be different than the last time modified? im pretty sure it is). Or, if that is not possible, would i be able to get the date the name of the file was changed?

Hopefully i was not too confusing in trying to explain my task.

What i have right now is a script that gets a list of all the files in a few directories, and i want to check for the newest 10 files in all of those directories w/o using a db.


11-11-2004, 12:20 AM
use filemtime() http://www.php.net/function.filemtime