Untitled
public text v1 · immutable$ArrayOfJobs = array();
$JobCount = 0;
function dirList ($directory)
{
$handler = opendir($directory);
while ($file = readdir($handler))
{
if ($file != '.' && $file != '..' && Job::ValidateFilename($file))
$ArrayOfJobs[$JobCount++] = new Job($file);
}
closedir($handler);
// done!
//return $results;
echo "<pre>";
print_r($ArrayOfJobs);
echo "</pre>";
}