note 3610 deleted from readdir by jmcastagnetto
| From: | jmcastagnetto@php.net | Date: | Mon, 06 Nov 2000 12:43:40 +0000 |
| Subject: | note 3610 deleted from readdir by jmcastagnetto | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-7449@lists.php.net to get a copy of this message | ||
PHP 4b3 seems to require that you take the return of opendir(). You don't have to do anything
with it, but it doesn't work otherwise.
<pre>
opendir(".");
echo readdir();
echo readdir();
echo readdir();
</pre>
will scream and die, while the following...
<pre>
$foo=opendir(".");
echo readdir();
echo readdir();
echo readdir();
</pre>
seems to work fine. Odd.