if($thread){
if(($fileType=='jpg')||($fileType=='jpeg')||($fileType=='png')||($fileType=='gif')||($fileType=='bmp')){
header('content-type:image/'.$fileType);
echo $thread['Fbody'];
}
else if( $fileType=='pdf'){header("filename=\"".$path."\"; ");
header('Content-type: application/pdf');
echo $thread['Fbody'];
}
请检查你的php环境
试着使用
<?php echo 1;
是否也能正常访问