-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
The script does the following to copy/rename the files.
copy($filename, $newname);
unlink($filename);
# Rename the file back to what it was originally called.
rename($newname, $filename);
You should probably add the following after the copy function to maintain permissions.
chown($newname, fileowner($filename));
chgrp($newname, filegroup($filename));
chmod($newname, fileperms($filename));
I'm not a PHP scripter so I just kind of threw this together. There may be an easier way to accomplish this.
Metadata
Metadata
Assignees
Labels
No labels