dir() and opendir() crash?
| From: | Jesse Griffis | Date: | Sun, 15 Oct 2000 22:03:39 +0000 |
| Subject: | dir() and opendir() crash? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-20271@lists.php.net to get a copy of this message | ||
Hello,
I don't know if this was discussed earlier, and if it was, I don't know
where to look for archived messages... anyway.
Check out this little bit of code:
$d = dir(".") ;
$filename = $d->read() ;
echo $filename ;
Can anyone tell me why, with 4.02 or the new 4.03pl1, PHP will crash
silently and no matter what I put in the script before or after, I get
simply "document contains no data" from the browser?
I use the same code on another server, and don't get the same error.
Any ideas?
Jesse