advanced code snippet search
taqin on 10/07/11
php wordpress
10/07/11 03:56pm
1 person have marked this snippet as a favorite
tux-world
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 Tweet
Comment:
You need to login to post a comment.