D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
self
/
root
/
proc
/
thread-self
/
root
/
home
/
markniuj
/
bazmeasar.com
/
Filename :
pdf_download.php
back
Copy
<?php if (isset($_GET['file'])) { $file = basename($_GET['file']); $file_path = "pdf/pdf_files/" . $file; if (file_exists($file_path)) { header("Content-Type: application/pdf"); header("Content-Disposition: attachment; filename=" . $file); readfile($file_path); } else { echo "File not found."; } } ?>