Files in directory

By log2 on Dec 20, 2004

This is another simple script, it tells you how many files there are in the specified directory, It can be used if you have a user system and you have downloadable files you can tell people how many files there are :)

<? 

$total= count(glob('/full/path/to/directory/*')); 

echo "There are $total files in the directory"; 

?>

Comments

Sign in to comment.
Are you sure you want to unfollow this person?
Are you sure you want to delete this?
Click "Unsubscribe" to stop receiving notices pertaining to this post.
Click "Subscribe" to resume notices pertaining to this post.