Thanks astrotag, but i tried it and it does not seem to work:
<?php
if (!copy($file, $file.'.bak')) {
echo "failed to copy $file...<br />\n";
}
?>
Where i tried to replace $file with the directory path home/$file. It does not like this and gives an error
Also, no mention of the renaming aspect like I stated above.
Thanks