|
|
|
|
glob -- Find pathnames matching a pattern |
|
|
|
|
예) Convenient way how glob() can replace opendir() and friends.
<?
foreach (glob("*.txt") as $filename) {
echo "$filename size " . filesize($filename) . "n";
}
?>
=> Output will look something like:
funclist.txt size 44686
funcsummary.txt size 267625
quickref.txt size 137820
* 이 함수는 원격 파일을 다루지 못합니다.
* 파일은 서버 파일시스템을 통해서 사용 가능해야만 합니다.
|
|
|