Does anyone know how to write a .php script to count how many files are in a folder, and assign that value to a variable?
| JOIN THE FORUM LOUNGE! By Joining The Forum Lounge you will be able to see the pictures in this thread and post a reply. Also, after 25 posts you'll be able to see the hidden forums as well! It's free and all of your information is confidential. |
Join in on this Discussion and see the pictures. Click here-> : counting pics
Manntis 09-27-2005, 12:45 AM earlier a few of you, esp. cOsborne, helped me write a script to determine if files were .jpg or .gif Does anyone know how to write a .php script to count how many files are in a folder, and assign that value to a variable? Cosby 09-27-2005, 06:05 AM $cnt=scandir('downloads_dir'); echo count($cnt); unset($cnt); Manntis 10-01-2005, 12:09 PM $cnt=scandir('downloads_dir'); echo count($cnt); unset($cnt); COsborne took the time to exchange about 8 PMs with me to help me get a version of this script working. Thanks for all your help, C :) Cosby 10-01-2005, 12:32 PM any time |
| JOIN THE FORUM LOUNGE! By Joining The Forum Lounge you will be able to see the pictures in this thread and post a reply. Also, after 25 posts you'll be able to see the hidden forums as well! It's free and all of your information is confidential. |