Re: Search & display *.txt files in dir

From: Date: Wed, 14 Mar 2001 05:03:09 +0000
Subject: Re: Search & display *.txt files in dir
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-43770@lists.php.net to get a copy of this message
Wow, that exact question was asked. Sorry everyone. Thanks anyway. David Robley wrote: > On Wed, 14 Mar 2001 15:20, Andrew V. Romero wrote: > > Is there a way to have php display all the .txt files in a directory? > > I checked in the manual but didn't see anything that would seem to help > > me do this. Thanks for any help. > > Wasn't this already asked and answered today? Anyhow, see the example for > readdir; you just need to expand the second example with a test (regex, > substr, whatever) that tests for .txt on the end of the filename. > > -- > David Robley | WEBMASTER & Mail List Admin > RESEARCH CENTRE FOR INJURY STUDIES | > http://www.nisu.flinders.edu.au/ > AusEinet | > http://auseinet.flinders.edu.au/ > Flinders University, ADELAIDE, SOUTH AUSTRALIA > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#43770) next »