I found a cool MySQL backup script. It's working fine on some hosting companies. Now I'm trying it on a different host running PHP Version 5.2.8.
I have a php.ini file that contains this (in both root dir and current dir):
disable_functions =.
I'm getting these warnings, and it seems like they are more than warnings. If the exec() doesn't run, the MySQL is not backed-up.
<b>Notice</b>: Undefined variable: output in <b>/home/nealsent/public_html/backups/backup_dbs.php</b> on line <b>21.
</b><br />
<br />
<b>Notice</b>: Undefined variable: res in <b>/home/nealsent/public_html/backups/backup_dbs.php</b> on line <b>210</b><br />
<br />
<b>Warning</b>: exec() has been disabled for security reasons in <b>/home/nealsent/public_html/backups/backup_dbs.php</b> on line <b>210</b><br />
<br />
The code is (line 210 is the exec).
// dump db
unset( $output );
exec( "$MYSQL_PATH/mysqldump $db_auth --opt $db 2>&1 >$BACKUP_TEMP/$db.sql", $output, $res);
Thanks,
Neal Walters