I created a small php script to categorize picture by folder/date in Windows. all is working great, files goes to the good place BUT it changes my "created date", wich I want to keep intact.
I use a very simple php copy() function.
I've use the touch() + filectime but still cannot change the creation date of file
any idea ?
from php.net:
It's worth noting that copy() sets the destination file's last modified time/date.
what is the problem of using this?
clearstatcache();
$oldstamp = filemtime("file.txt");
copy("file.txt","newfolder/file.txt");
touch("newfolder/file.txt",$oldstamp);