Directory & its Sub Dir

by Prabakaran 2011-12-29 10:02:04

/*
function that reads directory content and
returns the result as links to every file in the directory
also it disply type wheather its a file or directory
*/
function DirDisply() {

$TrackDir=opendir(".");
echo "";
while ($file = readdir($TrackDir))
{
if ($file == "." || $file == "..") { }
else
{
echo "";

}
}
echo "
$file
";
closedir($TrackDir);
return;
}

?>
Current Directory Contain
Following files and Sub Directories...


DirDisply();
?>

Tagged in:

927
like
0
dislike
0
mail
flag

You must LOGIN to add comments