note 15838 deleted from function.opendir by jimw
| From: | jimw@php.net | Date: | Sat, 08 Dec 2001 23:43:57 +0000 |
| Subject: | note 15838 deleted from function.opendir by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-22369@lists.php.net to get a copy of this message | ||
Regarding having to chdir to the directory (as mentioned by matt@studio77.com on 10-Jan-2001 03:59
and hj@LAMPwriter.com on 12-Apr-2001 12:51)<br>
This is probably due to the fact that the readdir() function returns just file names, not full
specs. The following works fine for me:<br>
$path = "_images/prodnum";
$images = array();
$d = opendir( $path );
while( $f = readdir( $d )) $images[] = $path . $f;
closedir( $d );