Hi,
I copied this snippet from this forum but it gives me a parse error, I've spent an hour looking at the manual but I must be having a particularly "thick" day as I can't see the error. Any ideas?
$host = "localhost";
$user = "user";
$pass = "pass";
$backupDir = "/home/usr/";
$backupFileName = "backup.sql";
$back = $backupDir.$backupFileName
system(sprintf("mysqldump --all-databases -h %s -u %s -p%s > %s",$host,$user,$pass,$back));
?>
Many thanks.