Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
home
/
cts.eemo.co.kr
/
public_html
/
src
/
web
/
view
/
farmData
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/cts.eemo.co.kr/public_html/src/web/view/farmData/file_download.php
<?php use CTS\CTS; CTS::$layout = "blank"; $fileName = $_REQUEST["fileName"]; $fileDiretory = $_REQUEST["fileDiretory"]; $file = "$fileDiretory/$fileName"; // 파일의 전체 경로 if(preg_match("/(MSIE)/s", $_SERVER["HTTP_USER_AGENT"])) { header("Content-Disposition: attachment; filename=".rawurlencode($fileName)); } else { header("Content-Disposition: attachment; filename=".$fileName); } header("Content-Type: application/octet-stream"); header("Content-Transfer-Encoding: binary"); header("Content-Length: ".filesize($file)); header("Pragma: no-cache"); header("Expires: 0"); $fp = fopen($file, 'rb'); fpassthru($fp); fclose($fp); ?>