Page 1 of 1
Directory Contents
Posted: Thu Sep 23, 2004 11:39 am
by drmgc
Hello. I am new to php. I would like to know how to get a listing of files in a directoy and have the file names be linked to the files themselves. Any help would be great!!!
Thanks
Posted: Thu Sep 23, 2004 12:06 pm
by paquin1
Are the files you want to search for inside of your web folder? or outside? And I ask this because I think linking them outside the web folder will be a little bit different. I might be wrong so hopefully the experts can help us here.
And by the way I posted something similar that might help you.
viewtopic.php?t=26237
Posted: Thu Sep 23, 2004 12:07 pm
by feyd
there's a lovely page in the manual:
http://www.php.net/manual/en/ref.dir.php
if you have a newer version of php, there's the [php_man]glob[/php_man] function too.
Posted: Fri Sep 24, 2004 10:47 am
by pickle
Do a forum search: [devnet]directory AND listing[/devnet]