Directory & its Sub Dir - PHP Views : 131
Tagged in : PHP
0 0
Send mail
/*
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();
?>

By Prabakaran, On - 2011-12-29



    Login to add Comments .