All pastes #384611 Raw Edit

Untitled

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