D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
home
/
markniuj
/
bazmeasar.com
/
pdf
/
Filename :
pdf_download.php
back
Copy
<?php if (isset($_GET['file'])) { $file = basename($_GET['file']); $file_path = "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."; } } ?>