ң

opendir

(PHP 3, PHP 4)

opendir - .

resource opendir (string path)

, closedir() , readdir() rewinddir() .

path - , opendir() FALSE PHP-. opendir(), '@' .

1. opendir()
<?php if ($dir = @opendir("/tmp")) { while (($file = readdir($dir)) !== false) { echo "$file\n"; } closedir($dir); } ?>

. is_dir() .


ң
getcwd readdir