php简单浏览目录内容
2013-08-09 23:25
260 查看
<?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>"; ?>
相关文章推荐
- php简单浏览目录内容
- php简单浏览目录内容
- php简单浏览目录内容的实现代码
- php简单浏览目录内容的实现代码
- File 遍历目录级其删除带有内容目录的简单例子
- PHP文件类-上传,样图,文件夹内容浏览删除
- php遍历指定目录中的内容
- 使用PHP简单网页抓取和内容分析
- PHP安全编程:主机文件目录浏览(转)
- php浏览目录
- php最简单的删除目录与文件实现方法
- PHP文件类-上传,样图,文件夹内容浏览删除
- PHP - 简单获取页面内容
- php获取某个目录下面文件的内容
- 一个极其简单的CMS(内容管理系统)PHP+MySQL技术解析
- php遍历指定目录中的内容2
- 最简单jquery.ajax+php例子(对话框显示文本框输入内容),以小见大(初学手记)
- 最简单jquery.ajax+php例子(对话框显示文本框输入内容),以小见大(初学手记)
- php ajax网站浏览统计功能的简单实现第1/2页
- PHP 实现列出目录的内容