There is any ways to listing all main directories present in php server(may it is wamp or xampp).
+2
A:
Depending on what you mean by "root directory" it could be as simple as
foreach( glob($_SERVER['DOCUMENT_ROOT'] .'/*', GLOB_ONLYDIR) as $fn) {
echo basename($fn), "<br />\n";
}
VolkerK
2010-03-22 07:07:46