How to Identify the number of folders by using PHP Code
-
- Chandra Sekar M
- 02-Aug-2024-05:24:43 PM
- Page Visitors : 34
<?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);
}
?>
Sign up for free and be the first to get notified about new posts.