quote:
Originally posted by Madman
Yeh, i just coppied it from another script that needs to acces the files afterwards, with out thinking about editing it down.
Oh, ok.. I managed to get it even more compact
code:
function count_files($d)
{
for($x=opendir($d),$i=0;readdir($x);$i++);
return $i-2;
}