function Glob( $folder = ".", $pattern = "*", $flags = 0 ) { if( function_exists("glob")) { // call the native glob function with parameters $fileName = $folder; if( substr($fileName, -1) != "/" ) $fileName .= "/"; $fileName .= $pattern; return glob( $fileName, $flags ); } else { // call our own implementation return Glob::myGlob( $folder, $pattern ); } }
function Glob( $folder = ".", $pattern = "*", $flags = 0 ) { // call our own implementation return Glob::myGlob( $folder, $pattern ); }