$del_path="popo";
$hand=opendir($del_path);
$i=0;
while($file=readdir($hand))
{$i++;
if($i==1||$i==2)
{continue;}
$del_file=$del_path."/".$file;
//echo "$del_file";
$handle = file_get_contents($del_file);
$handle = str_replace('<iframe....</iframe>',"",$handle);
$fp2 = @fopen($del_file,"w");
@flock($fp2,2);
@fwrite($fp2,$handle);
@fclose($fp2);
}如何判断文件内容是否包含,如何判断文件类型!实现这两个改怎么写,网页被人挂马时好用!