There are many good user-contribued examples in the online PHP manual at
function readdir()
Ignatius
_
- Original Message -
From: "FB" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, September 05, 2003 11:55 AM
Subject: [PHP-DB] all files in a directory
On Fri, 5 Sep 2003, FB wrote:
} I need a small script of php selecting all the files in a directory and
} putting the names in an array.
}
} Also, selecting a specific type might be helpfull like *.TXT
Untested:
$dir = dir('/your/dir/here');
while ($file = $dir->read()) {
if (preg_match('/\.TX