Directory Problem (Again)

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
User avatar
Joe
Forum Regular
Posts: 939
Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow

Directory Problem (Again)

Post by Joe »

I have a small code which allows me to view the current files in a directory, however I have bumped into a problem. The code shows everything in the directory including folders. I only want files to be shown, not the folders. Is there anyway around this?.

Regards


Joe 8)
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

[php_man]is_dir[/php_man]() / [php_man]is_file[/php_man]()
User avatar
Joe
Forum Regular
Posts: 939
Joined: Sun Feb 29, 2004 1:26 pm
Location: UK - Glasgow

Post by Joe »

Thanks again feyd. It was exactly what I required.
Post Reply