<?php  
#echo $_GET['pdfdisp'];
#echo $_GET['pdfdate'];
#$filename = '/var/www/html/pdf/a.pdf';
#$id = str_replace('.','_',$_GET['id']);
#$pdfNM = 'pdf/paid_' . $id . '.pdf';
#print("$pdfNM<br>\n");
#$files = glob($pdfNM);
#foreach ($files as $key => $value) {
#}

$filename = '/var/www/html/pdf/recommend.pdf';
header('Content-Type: application/pdf');
#header('Content-Disposition: inline; filename="' . basename($filename) . '"');
header('Content-Disposition: inline; filename="recom.pdf"');
#header('Content-Length: ' . filesize($filename));
readfile($filename);
exit();
?>
