ң

glob

( PHP 4 CVS)

glob - pathnames, .

array glob (string pattern [, int flags])

glob() pathnames, pattern , /shell. .

, /, FALSE .

: safe mode , , FALSE safe mode.

1. glob() opendir() .
foreach (glob("*.txt") as $filename) { echo "$filename size " . filesize($filename) . "\n"; }

:

funclist.txt size 44686 funcsummary.txt size 267625 quickref.txt size 137820

. opendir() , readdir() closedir() .


ң
fwrite is_dir