can PHP determine various bits of information aboutt he ontents of a directory? Much like right click -> properties in windows will tell you how many files are within that folder etc?
http://us3.php.net/manual/en/ref.dir.php
That's all of the directory functions. To aquire the information like the windows properties program, you would need to combine various functions to create a program to get all of the needed information.