note 8712 added to dir
| From: | chedong at netease dot com | Date: | Mon, 25 Sep 2000 21:22:20 +0000 |
| Subject: | note 8712 added to dir | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-5425@lists.php.net to get a copy of this message | ||
following code runs properly on FreeBSD version of PHP4.0.2 but failed on Solaris 7 :
<?php
$dir = "/home/chedong/public_html";
$d = dir($dir);
while($entry = $d->read()){
echo $entry."<br>";
}
?>
We found the error occured at
$d->read()
when the file read directory again there is no message returned.....
is it a bug on Sun OS?
http://www.php.net/manual/class.dir.php