Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
home
/
ltms.eemo.co.kr
/
public_html
/
super
/
Or
Select Your Path :
Upload File :
New :
File
Dir
/home/ltms.eemo.co.kr/public_html/super/download_contractfile.php
<? include_once("dbconn.php"); include_once("lib.php"); foreach($_GET as $key => $value) { ${$key}=mysql_real_escape_string(trim($value)); } foreach($_POST as $key => $value) { ${$key}=mysql_real_escape_string(trim($value)); } $rs=RS("select * from farm_contract where no='$contract_no' "); $orgname=$rs[contract_org_name] ; $Path="./upload/".$rs[contract_re_name]; if(is_file($Path)) { /* Header("Content-Length:".filesize($Path)); Header("Content-Disposition:attachment;filename=".$filename); Header("Content-type:file/unknown"); Header("Pragma: no-cache"); Header("Expires: 0"); */ Header("Content-Length:".filesize($Path)); Header("Content-Disposition:attachment;filename=".$orgname); Header("Content-type:file/unknown"); header("Content-Transfer-Encoding: binary"); Header("Pragma: no-cache"); Header("Expires: 0"); readfile($Path); } ?>