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

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

Nuget pack csproj using nuspec -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -