Re: Is there something like findfirst/findnext
| From: | J.Veenhuijsen | Date: | Wed, 12 Feb 2003 15:55:12 +0000 |
| Subject: | Re: Is there something like findfirst/findnext | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-18486@lists.php.net to get a copy of this message | ||
I should have read the manual better.
<?php
if ($dir = @opendir("/tmp")) {
while (($file = readdir($dir)) !== false) {
echo "$file\n";} closedir($dir); } ?> J.Veenhuijsen wrote:
I need to retrieve a list of files (jpg) in a directory. Is there a function like findfirst(*.jpg) like there is in Delphi? Thanks in advance ? Jochem