[PHP] How Many Files in a Directory

Mike

Active Members
This snippet of code is again from my forum software. It will show you how many files are in a certain directory on your website.

Code:
<?php
$directory = '[color="Red"]short url[/color]';
print count(glob($directory."/*.*"));
?>
 
Top Bottom