All pastes #384609 Raw Edit

Untitled

public php v1 · immutable
·published 2007-03-07 05:36 UTC
rendered paste body
function getGzFiles($dir){	$array = array();		if( is_dir($dir) and is_readable($dir) and $files = glob($dir . '/*.gz') ) 	{		foreach ( $files as $filename )		{			echo "$filename\n";			if ( is_file($filename) )			{				$array[] = $filename;			}		}		return $array;	}		return false;}