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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]