0; $mon-- ) { $mon = sprintf ( "%02d", $mon ); if ( !is_dir ( "./$mon" ) ) { continue; } foreach ( $file_list as $file ) { if ( !is_file ( "./$mon/$file" ) ) { continue 2; } } return $mon; } exit ( "No current directories." ); ?>