I want to print a full tree of my drive C ( Root=>Dir=>sub dir=>Files , ex:
C:\
[Winnt]
[mydir]
[images]
.. [GIF]
.... Image1.gif
.... Image2.gif
[applications]
[database]
etc ..
<?
// reading current working directory
$a = opendir(getcwd());
while ($b = readdir($a)) {
if ( (is_dir($b)) and ($b != ".") and ($b != "..") ){
$path = getcwd()."\\".$b;
echo "<a href='$path'>$b</a><br>";
}
}
closedir($a);
?>
Best regards