On Wed, 18 Aug 2004 02:54:35 +0300
[EMAIL PROTECTED] (Labunski) wrote:
> 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
note the "2" in that message. You are prob. resetting the readdir() parameter in the
script somewhere
> 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 != "..")
> {
>
You loop twice throu the same dir?
- Hannes
> ..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