Originariamente inviato da devils_it
Ciao Prova a far cosi...

Codice PHP:
if ($_POST['backup']){
$filename=$db."-".date("Y-m-d").".sql"
$percorso_file="/var/www/test/pannello/".$filename
system("mysqldump --user=$user --password=$password $db > $percorso_file "); 
// SE IL BROWSER E' INTERNET EXPLORER
if(ereg("MSIE ([0-9].[0-9]{1,2})"$_SERVER['HTTP_USER_AGENT'])) {
header("Content-Type: application/octetstream");
header("Content-Disposition: inline; filename=$filename");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Pragma: public");
}
else {
header("Content-Type: application/octet-stream");
header("Content-Disposition: attachment; filename=$filename");
header("Expires: 0");
header("Pragma: no-cache");
}
readfile($percorso_file);
unlink($percorso_file);    
exit();

come hai specificato il percorso?
che cos'è var/test/pannello?