Alright, I'm trying to make a complete backup of my database, and I have this code which I got from another thread here:
<?
$host = "localhost";
$user = "myusername";
$pass = "mypassword";
$backupDir = "/public_html/sqldump/";
$backupFileName = "backup.sql";
$back = $backupDir.$backupFileName;
system(sprintf("mysqldump --all-databases -h %s -u %s -p%s > %s",$host,$user,$pass,$back));
?>
However, there is no output created whatsoever. Is there something I did wrong? Perhaps the $backupDir needs to be my full system path? Not just what is shown on the FTP client? 😐