I’ve got a site hosted with 1and1 – who are useless! For some reason the backup scripts they provide no longer work and they can’t provide me with an answer! So I thought I’d write my own, this is my code:
$command = "mysqldump -u [usernameXXXX] -p [passwordXXX] [dbname] > [backupfile.sql]";
system($commmand);
however I get the following error:
Warning: system() [function.system]: Cannot execute a blank command in /homepages/46/
XXXXXX/htdocs/admin/db_backup.php on line 19
commmand!=commandYou have 1 extra “m” there
To see if it’s throwing any errors, try using