Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private function countFiles($path)
- {
- $count = 0;
- $scan = scandir($path);
- foreach($scan as $files)
- {
- if(is_file($path.$files))
- {
- $count++;
- }
- }
- return $count;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement