Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- #echo apache_get_version();
- file_force_download("C:\\SOFT\\npp.7.6.3.Installer.x64.exe");
- function file_force_download($file) {
- if (file_exists($file)) {
- header('X-SendFile: ' . realpath($file));
- header('Content-Type: application/octet-stream');
- header('Content-Disposition: attachment; filename=' . basename($file));
- exit;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement