Originally posted by ajdegans
quite obviously i did change em all π
but still it wont wotk π
I wouldn't say "quite obviously" because I took your snippet, and changed it to:
<?php
$dir_me = "images/me_room/"; //Dir to count files from
$dir_count = 0;
$dir_count = $dir_count - 2; //Minus 2 to remove the . and ..
if(is_dir($dir_me)) {
if($handle = opendir($dir_me)) {
while(($file = readdir($handle)) !== false) {
$dir_count++;
} // end while
closedir($handle);
} //end if
} //end if
?>
and it worked just fine for me... There was nothing "obvious" in your first post to indicate you had changed them all... AndrewWest was trying to be helpful, because sometimes we (as coders) overlook the most obvioius things, and going back to the very basics resolves a lot of problems... Anyhow, off the soap box now... Since it worked for me, I can't really help you other than to say it may be an issue with the server your files reside upon. Good luck finding your answer, I hope it gets resolved.