ThanQ,
I have wrote a PHP to show server directory structure in the client web browser. The server is mainly a backup server. the code I wrote is like below.
function treewalk($T)
{
while($entry=$t->read())
{
if (($entry != '.') && ($entry != '..'))
{
if (is_dir($t->path . "/" . $entry))
{
//do somting.
}
}
}
}
treewalk(<Directory point>);
But the back up server may havesomany files and folders in it. We provide a option for the client to select only folders. so in that case one directory had 70,000 files + 70,001 is the folder. The above PHP is taking hell lot of time to show the tree.
So, I thought it is better to scan only directories instead files is there any way to get the above problem solved.
Thanks in advance.
With Regards
venkat.