note 9798 rejected and deleted from dir by jmcastagnetto
| From: | jmcastagnetto@php.net | Date: | Sat, 25 Nov 2000 07:54:26 +0000 |
| Subject: | note 9798 rejected and deleted from dir by jmcastagnetto | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-8131@lists.php.net to get a copy of this message | ||
i use the following code to read a directory:
<?php
$d = dir("/tmp/php");
echo "Handle: ".$d->handle."<br>n";
echo "Path: ".$d->path."<br>n";
while($entry=$d->read()) {
echo $entry."<br>n";
}
$d->close();
?>
Here is the result:
Handle: Resource id #1
Path: /tmp/php
.
..
12345678901234ÿ??0
123456789
It seems that php4 has a problem with filenames longer than 13 characters.
Php3 works well. Any ideas ?