copy image on windows using php script without modifying creation date -
i created small php script categorize picture folder/date in windows. working great, files goes place changes "created date", wich want keep intact.
i use simple php copy() function.
i've use touch() + filectime still cannot change creation date of file
any idea ?
from php.net:
it's worth noting copy() sets destination file's last modified time/date.
what problem of using this?
clearstatcache(); $oldstamp = filemtime("file.txt"); copy("file.txt","newfolder/file.txt"); touch("newfolder/file.txt",$oldstamp);
Comments
Post a Comment