PHP4
について
dir -- ディレクトリ・クラス
説明
class dir {
dir ( string directory )
string path
resource handle
string read ( void )
void rewind ( void )
void close ( void )
|
| file_test/dir_01.php | |
|---|---|
$d = dir("./");
echo "Handle: ".$d->handle."\n";
echo "Path: ".$d->path."\n";
while (false !== ($entry = $d->read())) {
if ($entry != "." and $entry != "..")
echo $entry."\n";
}
$d->close();
|
|
| 結果 | |
|---|---|
Handle: Resource id #1 Path: ./ logout01.php logdir sjis.txt logout01.php~ svr.php dir_01.php svr.php~ dir_01.php~ |
|
| 目次に戻る |
2005/06/04start ********* Last Update 2006/11/12 18:55 JST
| その他、お気づきの点がありましたら連絡先はこちらから |