I know that there is a way to get a list of file names in a folder using PHP...
but...
Is there currently any way to get the date/time the file was uploaded/created using php?
Unix does not keep track of when a file was created, only when it was changed, modified, and accessed. You can use filectime, filemtime, and fileatime, respectively to do this. If you are dealing with uploaded files, it is probably incredibly rare that you would alter the file at any time, so filemtime() is likely to give you the creation time.
You can use the filemtime function to get the last modification time of a file and fileatime to get the access time.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With