The exec() function may help you.
http://php.net/function.exec
It allows you to execute shell commands from PHP.
You could for example exec to execute "ls" or "dir" and then parse the return for the directories.
Reputation Points: 457
Solved Threads: 101
Nearly a Posting Virtuoso
Offline 1,250 posts
since Sep 2005