0) && ($major != $v) ) { continue; } if ($major > $highest_major) { $highest = true; } else if ( ($major == $highest_major) && ($minor > $highest_minor) ) { $highest = true; } else if ( ($major == $highest_major) && ($minor == $highest_minor) && ($point > $highest_point) ) { $highest = true; } if ($highest) { $highest_major = $major; $highest_minor = $minor; $highest_point = $point; $highest_filename = $entry; } } } if ($highest_filename != '') { header('Location: '.$highest_filename); exit; } header('HTTP/1.0 404 Not Found'); print "File not found."; exit; ?>