php简单浏览目录内容
2009-12-14 21:38
274 查看
<?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简单浏览目录内容的实现代码
- RHCE033内容摘要、目录结构、简单命令
- windows中建立以自己的名字命名的共享目录,在linux字符终端浏览共享目录中内容。
- 使用array_map简单搞定PHP删除文件、删除目录
- PHP文件类-上传,样图,文件夹内容浏览删除
- php 最近浏览过的商品及cookie的跨目录
- php简单创建多级目录
- PHP安全编程之主机文件目录浏览
- PHP 循环列出目录内容的函数代码
- php获取网页中图片、DIV内容的简单方法
- php 解压zip压缩包内容到指定目录的实例
- 【PC端】jQuery+PHP实现浏览更多内容(jquery.more.js插件)
- 利用PHP制作简单的内容采集器的原理分析
- PHP代码审计之路——1.文件、目录、浏览查看相关
- jQuery+.net实现浏览更多内容(改编php版本)
- PHP文件类-上传,样图,文件夹内容浏览删除
- PHP 循环列出目录内容的函数代码