Re: [PHP-DB] all files in a directory

2003-09-05 Thread Ignatius Reilly
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

Re: [PHP-DB] all files in a directory

2003-09-05 Thread Vince LaMonica
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