prepare("$sql"); $sth->execute(); $row = $sth->fetch(PDO::FETCH_BOTH); $nomeFile=$row[0]; #$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); ?>