Hamlets666 Posted January 9, 2007 Share Posted January 9, 2007 This code : [code]$path = "pic";$x = count(glob($path."/*")); [/code] gives me number of files in that folder.How to count files also in subfolders(make total count of files)? Quote Link to comment https://forums.phpfreaks.com/topic/33487-count-files-in-folder-subfolders/ Share on other sites More sharing options...
papaface Posted January 9, 2007 Share Posted January 9, 2007 This will help:http://www.programmingtalk.com/showthread.php?t=482Google is your friend :) Quote Link to comment https://forums.phpfreaks.com/topic/33487-count-files-in-folder-subfolders/#findComment-156737 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.