If knowledge is power, then sharing knowledge is ultimate powertrip
Latest Updates
You are here: Home >> 2010 >> March

Monthly Archives: March 2010

count files in a folder using php

Hi all, We can count files in a folder using PHP by using the following function. It return the no of files in the directory provided as input argument function count_files ($dir){ $count = count(glob($_SERVER[‘DOCUMENT_ROOT’].$dir . “*”)) ; return $count; } Thanks Jawed Read More »

Scroll To Top