Upon second thought, I put it back. If you want random, call as "script.php?rand", otherwise it will use the current day of the year.
Code:
<?php
// DumbPic Script by GrouchyAdmin. <[email protected]>.
// You are free to use this code, but please leave this notice
// in place.
// Set $rand to TRUE to choose randomly between 001.jpg and 365.jpg.
$rand=isset($_REQUEST['rand']) ? TRUE : FALSE;
$picNow=($rand) ? sprintf("%03d", rand(1,365)) : sprintf("03d", date("z")) . ".jpg";
header("Content-type: image/jpeg");
if (file_exists("$picNow")) {
@readfile("$picNow");
} else {
@readfile("missing.jpg");
}
?>