All pastes #732484 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-10-11 01:12 UTC
rendered paste body
@$d = dir($directory);
if ($d) { 
	while($entry=$d->read()) {  
		$ps = strpos(strtolower($entry), $filter);
		if (!($ps === false)) {  
			$items[] = $entry; 
		} 
	}
	$d->close();
	sort($items);
}