|
|
Directory & its Sub Dir - PHP
|
Views : 131
|
|
Tagged in : PHP
|
|
|
Report This Scrap as Inappropriate We request you to choose the appropriate categroy and subcategory that suits your
objectionable concern about the scrap, So that our team can review and find out whether it violates our Guidelines or the
scrap is not suitable for all viewers.
|
/*
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 "| $file | ";
}
}
echo " ";
closedir($TrackDir);
return;
}
?>
Current Directory Contain
Following files and Sub Directories...
DirDisply();
?>
|
|
By Prabakaran, On - 2011-12-29 |
|
|
|