Hi, I'm Chandra Sekar M

Sub-Categories
Technology

How to Identify the number of folders by using PHP Code

<?php
if ($handle = opendir('.')) {
    while (false !== ($entry = readdir($handle))) {
        if ($entry != "." && $entry != "..") {  
?>
        <a href="<?php echo $entry; ?>"><?php   echo "$entry<br />"; ?> </a>
        <?php 
}
    }
    closedir($handle);
}
?>

 

 

Subscribe to our Newsletter

Sign up for free and be the first to get notified about new posts.