$path='/root/helpfiles/';
$dir_handle = opendir($path);

  while ($file = readdir($dir_handle)) {
if ((ereg("help",$file)){
INCLUDE "$path$file";

OR

echo '<A HREF=".$path$file.'">'.$file.'</A>

}
        }





____________________________ 
Matthew Luchak 
Webmaster
Kaydara Inc. 
[EMAIL PROTECTED]


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Thursday, April 19, 2001 8:25 AM
To: [EMAIL PROTECTED]
Subject: [PHP] List Files


Hi,

Does anyone know how I can list all the files begining with help in one
of my 
pages.

So I have a dir which has various files, like so:

help_me.php
help_you.php
help_us.php

Is there some command I can use to select all the files and then print
them 
out?

TIA
Ade

-- 
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-mail: [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-mail: [EMAIL PROTECTED]

Reply via email to