Codice PHP:
/**
* @author johnnyd
* @copyright 2008
*/
include_once('config.php');
//pagina download
$idBooklet = $_GET['idS'];
//AGGIORNO IL NUMERO DI VISITE
$sql = "UPDATE booklets SET visite = visite + 1 WHERE idS = " . $idBooklet;
mysql_query($sql);
//prendo l'url del file
$sql2 = "SELECT url_big FROM booklets WHERE idS = " . $idBooklet;
$recdatis = mysql_query($sql2);
$recdati = mysql_fetch_assoc($recdatis);
$urlDownload = $recdati['url_big'];
// We'll be outputting a PDF
header('Content-type: application/pdf');
// It will be called downloaded.pdf
header('Content-Disposition: attachment; filename="../survey_files/$urlDownload"');
è normale che mi fa scaricare la pagina anizchè il pdf?