Markro
02-26-2007, 09:51 PM
I have an old script I've been using for sometime, but it isn't working anymore, can someone help me?
<?php
shell_exec('mysqldump -uUSERNAME -pPASSWORD DATABASE > /public_html/backups/backup.sql');
rename(dirname(__FILE__).'/', dirname(dirname(__FILE__)).'/Dump'.date('Ymd').'.sql');
?>
<?php
shell_exec('mysqldump -uUSERNAME -pPASSWORD DATABASE > /public_html/backups/backup.sql');
rename(dirname(__FILE__).'/', dirname(dirname(__FILE__)).'/Dump'.date('Ymd').'.sql');
?>