PHP将当前目录列出来


$d=dir(".");
echo $d->path;
while(false !== ($e = $d->read())) {
echo "<a href=$e target=_blank >$e</a>"."<br>";
}
$d->close();

posted @ 2013-09-09 11:46  jshaibozhong  阅读(145)  评论(0编辑  收藏  举报