Hello, How to understand this warning? I thought maybe the directory name is incorrect, but it's fine. The Browser said.. "Warning: readdir(): 2 is not a valid Directory resource in C:\xxx\xxxxx\news.php no line 78".
<?php if ($handle = opendir('news')) { $sortArray=array(); while (false !== ($topic = readdir($handle))) { // this is line 78 if ($topic != "." && $topic != "..") { while (false !== ($topic = readdir($handle))) { if($topic != "." && $topic != "..") { ..etc. etc. I posted just a first part (beginning) of the code, so that it were easier to understand. Sorry for my bad English, Thank you very much, Lab. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php