PHP file timestamp (change Attribut) -
i have pictures in folder , rename them php. unfortunately change attribut set current date , time. want keep original one. possible?
before rename command, file's existing modification time using filemtime()
function, this: $mtime = filemtime($file);
then, after rename command, set modification time value using touch()
function, this: touch($file, $mtime, $mtime);
read more:
Comments
Post a Comment