花了一天,終於將這個Bug給解決了:
if (file_exists($basedir."attachments/$file_name")) { //mod by nelson liu 2006/1/11
$path = $basedir."attachments/$file_name"; //mod by nelson liu 2006/1/11
header("Pragma: public");
header("Content-type: $file_type");
header("Content-Disposition: filename=$orig_name");
header("Content-transfer-encoding: binary\n");
header("Content-length: " . filesize($path) . "\n");
readfile("$path");
exit; //added by nelson liu 2006/1/11