findnext

(FW >= 1.0)

findnext - finds the next file after a findfirst

Description

array findnext()
This will continue a search to iterate through a list of files

Parameters

none

Return Value

Array of the  matching element.  The array will contain the following keys and values: 
filename - name of the file
attributes - file attributes (FAT)
filesize - file size in bytes
timestamp - FAT timestamp of last save

Examples

<pre><?
// change to the root folder

chdir("/");

// get the first entry matching any file, excluding directories
$arr=findfirst("*.*",255-16);

while ($arr) {
print($arr['filename']."\r\n");
$arr=findnext();
}
?>
</pre>