我編寫波紋管我自己的代碼,我得到自動對焦*,我越來越厭倦這種每次荷蘭國際集團內部服務器錯誤,請幫忙:PHP頭,內部服務器錯誤
<?
function doer($str)
{
$d = base64_decode($str);
$a = explode('<||>',$d);
$v =array(
'path' => $a[0],
'size' => $a[1],
'type' =>$a[2]
);
return $v;
}
?>
<?
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT\n");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
$a= doer($_GET['d']);
$type = $a['type'];
header("Content-type: application/".$type.";\n"); //or yours?
header("Content-Transfer-Encoding: binary");
$filename = $a['path'];
$len = $a['size'];
header("Content-Length: $len;\n");
$outname="downfile.".$type;
header("Content-Disposition: attachment; filename=\"$outname\";\n\n");
$filename = 'http://example.com/tst/'.$a['path'];
readfile($filename);
?>
更多info: 此腳本應放在(http://example.com/tst/)上,並且所有文件都存儲在(http://example.com/tst/downloads)中。還沒有.htaccess文件
kaveh塔赫,注意回答Marc B!這是安全性的失敗...用戶可以獲取您的服務器或應用程序的信息 – 2010-06-23 03:41:03