Code: Select all
header("Content-type: application/pdf");
header("Content-Disposition:attachment; filename=" . $file_name);
header("Content-Length: " . filesize($file_name_));
readfile("cfiles/" . $file_name);
Code: Select all
<html>
<head>
<meta HTTP-EQUIV="REFRESH" content="0; url=upload.php?file_id=<? echo $file_id; ?>">
</head>
</html>
how can i make the underlying page refresh after saving the file?
TIA