/ Published in: Other
Expand |
Embed | Plain Text
<?php if(isset($_GET["file"]) && $_GET["file"] != "") { if(file_exists($_GET["file"])) { header("Content-type: application/x-download"); header("Content-Length: ".filesize($file)); header('Content-Disposition: attachment; filename="'.basename($_GET["file"]).'"'); readfile($_GET["file"]); exit(); } else { exit("File not found"); } } else { exit(); } ?>
Comments
Subscribe to comments
- Posted By: khader on July 30, 2007
You need to login to post a comment.
