Directory Contents

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
drmgc
Forum Newbie
Posts: 1
Joined: Thu Sep 23, 2004 11:36 am

Directory Contents

Post 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
paquin1
Forum Commoner
Posts: 36
Joined: Fri Aug 06, 2004 1:57 pm

Post 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
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post 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.
User avatar
pickle
Briney Mod
Posts: 6445
Joined: Mon Jan 19, 2004 6:11 pm
Location: 53.01N x 112.48W
Contact:

Post by pickle »

Do a forum search: [devnet]directory AND listing[/devnet]
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
Post Reply