<?<br/>$n1?=date("d");<br/>$dh?=?opendir?("./a/");<br/><br/>while?($file?=?readdir($dh)){<br/>????$c?=?substr($file,-10,2);<br/>????if?($c?==?$n1)?{???//?打开,并且读取文件内容<br/>????????$handle?=?fopen($file);<br/>????????$contents?=?fread($handle,?filesize?($filename));<br/>????????fclose($handle);<br/>????}<br/>}<br/>closedir($dh);<br/>?><br/><br/>谢谢您的回复,不好意思怎么我运行后是这个结果啊??<br/>我不知道那错了???能帮忙看看么???<br/>谢谢<br/><br/><br/><br/><br/><br/>Warning:?fopen()?expects?at?least?2?parameters,?1?given?in?/var/www/html/lyr/bb.php?on?line?8<br/><br/>Warning:?fread():?supplied?argument?is?not?a?valid?stream?resource?in?/var/www/html/lyr/bb.php?on?line?9<br/><br/>Warning:?fclose():?supplied?argument?is?not?a?valid?stream?resource?in?/var/www/html/lyr/bb.php?on?line?10