$foo = `ls help*`;
$files = explode("\n",$foo);
while(list(,$fname) = each($files))
echo $fname."\n";
--Joe
On Thu, Apr 19, 2001 at 08:25:19AM -0400, [EMAIL PROTECTED] wrote:
> 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]
/* Joe Stump
* Sr. PHP Developer
* http://www.Care2.com http://www.joestump.net http://gtk.php-coder.net
*/
--
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]