The sentence from the PHP documentation documentation for "copy" suggests using the exec () command to call "xcopy" to execute the copy. This worked for me, but I like the copy / touch solution more. I am comparing mtimes already, so there was no performance delay for this. I have not tried it, but I assume that "cp" will work on * nix.
Mark longmire
source share