PHP将当前目录列出来
$d=dir(".");
echo $d->path;
while(false !== ($e = $d->read())) {
echo "<a href=$e target=_blank >$e</a>"."<br>";
}
$d->close();
$d=dir(".");
echo $d->path;
while(false !== ($e = $d->read())) {
echo "<a href=$e target=_blank >$e</a>"."<br>";
}
$d->close();