All pastes #397747 Raw Edit

Untitled

public text v1 · immutable
·published 2007-03-16 19:07 UTC
rendered paste body
$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>";

}