Exensions for file downloads
Server when support PHP files
Copy DownloadFile.php to anywhere
$downloadFile = new \FS\DownloadFile;
$downloadFile->download('data/file.exe');
$filePath = 'data/file.exe';
$fileName = 'install.exe';
$contentType = 'application/octet-stream';
$downloadFile = new \FS\DownloadFile;
$downloadFile->speed(10); // 10 kb/s
$downloadFile->download($filePath, $fileName, $contentType);