?
Path : /home/admin/domains/happytokorea.com/public_html/ |
Current File : /home/admin/domains/happytokorea.com/public_html/loadfile.php |
<?php if($_GET['ty']==2){ $file_url = 'backend/images/ContentPdf/'.$_GET['fileP']; }else{ if($_GET['fileP'] <> ""){ $file_url = 'tour/pdf/'.$_GET['fileP']; }else{ $file_url = 'tour/word/'.$_GET['fileW']; } } header('Content-Type: application/octet-stream'); header("Content-Transfer-Encoding: Binary"); header("Content-disposition: attachment; filename=\"" . basename($file_url) . "\""); readfile($file_url); exit(); ?>