I want to create a backup from a database, but I get only a blank file.
include(\'config.php\'); $command = \"mysqldump --opt -h \".$_host.\" -u \".$_user.\
Take the variables out of the quotes and remove --opt.
Also make sure that you are having unique file names
$backupfile = $dbname . date("Y-m-d-H-i-s") . '.sql';
$command = "D:\xampp\mysql\bin\mysqldump -u $_user -p$_pass $_db > $backupfile";
system($command);