cant get this to work [!--quoteo(post=380199:date=Jun 5 2006, 09:00 AM:name=Orio)--][div class=\'quotetop\']QUOTE(Orio @ Jun 5 2006, 09:00 AM) [snapback]380199[/snapback][/div][div class=\'quotemain\'][!--quotec--] [code]$num=count(scandir($dir); echo("There are currently ".$num." files in ".$dir);[/code] But scandir requires PHP 5 or higher. So if you have PHP<5, go to: [a href=\"http://www.php.net/manual/en/function.scandir.php\" target=\"_blank\"]http://www.php.net/manual/en/function.scandir.php[/a] And see user's notes, there you can find a function like scandir for PHP<5. Orio. [/quote]