UBB.Dev
Posted By: TheLizardKing Directory Detector - 11/19/2001 12:32 AM
okie dokie, I have a problem. I'm making a CGI script that detects all the folders in the given directory. This is what I've come up with so far.

Input
Code
code:

Output
Code
code:

not only do I get files AND folders but I get . and ..
I need something that will just read the folders and output their name and a link to them as simple html. What am I doing wrong here?
Posted By: Dave_L Re: Directory Detector - 11/19/2001 3:11 AM
This will get directories only, and ignore '.' and '..':
Code
code:

[ 11-18-2001: Message edited by: Dave_L ]
© UBB.Developers