prepare("$sql"); $result->execute(); list($nomeFile) = $result->fetch(PDO::FETCH_NUM); #$nomeFile="backup"; header( 'Content-Type: application/octet-stream' ); header( 'Content-Disposition: attachment; filename="'.$nomeFile.'"' ); #header( 'Content-Length:'.strlen( $content ) ); header( 'Content-Transfer-Encoding: binary' ); include("backup2.php"); exit(0); ?>