title: How to count number of files in folder in php?
body: <p>I want to enable users to upload some files (pictures) in their own folders. But that should be possible only if that folders contain less than five pictures. If there are 5 pictures already, script has to let know user that his/her folder is full.
   So, I wonder if there is function in php that count number of files in folder. Or any other way in php to do that? Thanks in advance. </p>