Mailinglisten-Archive |
Hi,
> $d = dir("/tmp");
> echo "Handle: ".$d->handle."<br>\n";
> echo "Path: ".$d->path."<br>\n";
> while($entry=$d->read()) {
> echo $entry."<br>\n";
> }
> $d->close();
wobei die OO-Methode deutlich langsamer ist,
als ihr 'naturelles' Pedant:
$dir = opendir("/tmp");
while($entry = readdir($dir))
{echo $entry."<br>\n";
}
closedir($dir);
m. b. G. Norbert
_____________________
normal: 02292-681769
Notruf: 0177-2373368
---------------------
e.o.m.
php::bar PHP Wiki - Listenarchive