advanced code snippet search
taqin on 10/07/11
1 person have marked this snippet as a favorite
To find the count of number of files in a directory, use this.
<?php$dir_path = "wp-content/uploads/media/";$wcount = count(glob("" .$dir_path. "*.jpg"));?>
Report this snippet
You need to login to post a comment.