note 9798 added to dir

From: Date: Fri, 24 Nov 2000 09:23:38 +0000
Subject: note 9798 added to dir
Groups: php.notes 
Request: Send a blank email to php-notes+get-8102@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 ? http://www.php.net/manual/class.dir.php

« previous php.notes (#8102) next »