PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Is there a way to get the date of an uploaded file?
I want to extract the date a file was created when it's been uploaded to my site. Using stat() gets me nothing at all, and using filemtime and filectime both return me the date the file was uploaded, rather than its original datestamp.
I dont see how it's possible. Since different filetypes store the created date differently (if at all). You'd have to rely on the OS's record of the create, which when uploaded, switches computers so that record isn't available.