Hi, Searching for a way to count files in two folders, what I want to do is display on my site "Files in Folder A: XXX Size of of files in folder A: XXX Files in Folder B: XXX Size of files in folder B: XXX Total amount of files: XXX Size of all files: XXX" Thanks for help.
You can use the php's dir() function to iterate over a directory and use filesize() function to find size of each file. If you want recursive search (calculate files inside subfolders) then glob() might be better.
You can use readdir to get and count the number of files.. Here's the link: http://php.net/manual/en/function.readdir.php