<?php
$file_name = "down";
$file_name = "down.zip";
$file_dir = "./down/";
if (! file_exists ($file_dir . $file_name )) {header('HTTP/1.1 404 NOT FOUND');
} else {
$file = fopen ($file_dir . $file_name, "rb" );
Header ("Content-type: application/octet-stream" );
Header ("Accept-Ranges: bytes" );
Header ("Accept-Length:" . filesize ($file_dir . $file_name ) );
Header ("Content-Disposition: attachment; filename=" . $file_name );
echo fread ($file, filesize ($file_dir . $file_name ) );
fclose ($file );
exit ();}