"the document contained no data"
| From: | Phieu Huynh | Date: | Fri, 12 Apr 2002 00:48:45 +0000 |
| Subject: | "the document contained no data" | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-92692@lists.php.net to get a copy of this message | ||
Hi,
I am trying to read the files in the directory and display them .
but I got the message " the document contained no data "
this is my code
<?
$d = dir("/export/home/phuy/www/test/upload");
echo "Handle: ".$d->handle."<br>";
echo "Path: ".$d->path."<br>";
while($entry=$d->read()) {
echo $entry."<br>\n";
}
echo "<hr>";
$d->close();
?>
Can anyone tell me what should I do to correct it.
I would like some help, thank in advance.