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

Popular posts from this blog

django - How can I change user group without delete record -

java - Need to add SOAP security token -

java - EclipseLink JPA Object is not a known entity type -