Page 1 of 1

Directory Problem (Again)

Posted: Mon Sep 27, 2004 3:38 pm
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)

Posted: Mon Sep 27, 2004 3:44 pm
by feyd
[php_man]is_dir[/php_man]() / [php_man]is_file[/php_man]()

Posted: Mon Sep 27, 2004 3:50 pm
by Joe
Thanks again feyd. It was exactly what I required.