Revision: 51918
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at October 7, 2011 15:56 by taqin
Initial Code
<?php $dir_path = "wp-content/uploads/media/"; $wcount = count(glob("" .$dir_path. "*.jpg")); ?>
Initial URL
Initial Description
To find the count of number of files in a directory, use this.
Initial Title
Counting Files in a Directory
Initial Tags
php, wordpress
Initial Language
PHP