/ Published in: PHP
Getting files, folders, file count, folder count in a directory with php and writing them to a web page
Expand |
Embed | Plain Text
<?php $folderCount = $fileCount = 0; //. means current directory //if you wanna a learn a folders inside use opendir('path') if ($entry != "." && $entry != "..") { $folderCount++; } else { $fileCount++; } } } echo "<br>==============<br>"; } ?>
You need to login to post a comment.
