hmm
i guess i need to understand how this whole thing works.....
when i display the picture that they have uploaded it's by a direct link to the picture ex(http://my-domain.com/picture/file-name.jpg) So i never call the entire directory.
so how are these pictures being displayed?
if you want to...
use
function countfiles($path, $filter)
{
$dir = opendir($path);
while ($file = readdir($dir)){
if(strstr($file, $filter)){ $i++; }
}//end while
closedir($dir);
return $i;
}
to count your files.. and then use an if statment ot check that the file count is under a set value.. and if it is.. make a script to move the foles to a different folder.