如下所示:
<?php<BR>$dir = dirname(__FILE__);<BR>$open_dir = opendir($dir);<BR>echo "<table border="1" cellpadding="6">";<BR>echo "<tr><th>文件名</th><th>大小</th><th>类型</th><th>修改日期</th></tr>";<BR>while ($file = readdir($open_dir)) {<BR> if ($file!= "." &<em>/本2文来源[email protected]搞@^&代*@码2网</em><strong>搞gaodaima代码</strong>& $file != "..") {<BR> echo "<tr><td>" . $file . "</td>";<BR> echo "<td>" . filesize($file) . "</td>";<BR> echo "<td>" . filetype($file) . "</td>";<BR> echo "<td>" . filemtime($file) . "</td></tr>";<BR> }</P><P>}<BR>echo "</table>";<BR>?><BR>