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.
digital-ether
Nearly a Posting Virtuoso
1,293 posts since Sep 2005
Reputation Points: 461
Solved Threads: 101