This seems to work. Is there a better way?
chdir("/home/docvault");
$dir = dir(".");
$dir->rewind();
while ($file=$dir->read()) {
if (($file != ".") & ($file != "..")) {
$Filelist[] = $file;
}
}
$dir->close();
Todd
--
Todd Cary
Ariste Software
[EMAIL PROTECTED]
--
As I recall, I need to use the file function e.g. fopen().
Todd
--
Todd Cary
Ariste Software
[EMAIL PROTECTED]
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-
$result = `ls foo*`; // :) :#
???
Martin
-Original Message-
From: Todd Cary [mailto:[EMAIL PROTECTED]]
Sent: Thursday, January 24, 2002 3:17 PM
To: [EMAIL PROTECTED]
Subject: [PHP] I lost the message...
I am embarrassed to say that I lost the anser to my question on the
syntax
I am embarrassed to say that I lost the anser to my question on the
syntax to get a list of all of the files in a specified directory
matching a sertain criteria.
Anyone willing to give me another chance?
Todd
--
Todd Cary
Ariste Software
[EMAIL PROTECTED]
--
PHP General Mailing List (http:
4 matches
Mail list logo