亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

php簡(jiǎn)單瀏覽目錄內(nèi)容的實(shí)現(xiàn)代碼

 更新時(shí)間:2013年06月07日 11:46:49   作者:  
本篇文章是對(duì)php簡(jiǎn)單瀏覽目錄內(nèi)容的實(shí)現(xiàn)代碼進(jìn)行了詳細(xì)的分析介紹,需要的朋友參考下

如下所示:

復(fù)制代碼 代碼如下:

<?php
$dir = dirname(__FILE__);
$open_dir = opendir($dir);
echo "<table border=1 borderColor=red cellpadding=6>";
echo "<tr><th>文件名</th><th>大小</th><th>類型</th><th>修改日期</th></tr>";
while ($file = readdir($open_dir)) {
 if ($file!= "." && $file != "..") {
  echo "<tr><td>" . $file . "</td>";
  echo "<td>" . filesize($file) . "</td>";
  echo "<td>" . filetype($file) . "</td>";
  echo "<td>" . filemtime($file) . "</td></tr>";
 }

}
echo "</table>";
?>

相關(guān)文章

最新評(píng)論