I am having some problems with this script:
<?php
$datestring = date("dmy");
$oldfile = "backup_forum.sql";
$newfile = "backup_forum" . $datestring . ".sql";
rename ("backup_forum.sql", "backup_forum'$datestring'.sql");
?>
It's returning this error:
Warning: rename(backup_forum.sql,backup_forum'040604'.sql): Permission denied in /home/www/ElburdNDL/backups/adddate.php on line 7
What's the problem then? I've tried CHMODing all the files to 777 but this doens't improve things.
Many thanks,
Ed Ludlow