1000){$dest = '/d/20080529.html';} // Check to see if the file exists and set dest to end the loop if it does. The / is added at // this point as opposed to before because having it already on the string while checking for // the file with file_exists() seemed to keep it from working in another file of mine. if (file_exists($rFile)){$dest = '/'.$rFile;} } while ($dest == ''); // This opens up the page with the comic. header('Location: '.$dest); ?>