" .sprintf("%0"."$textcountlength"."d",$hitcount).""; } else { $longstr = strlen($hitcount); for ($x=0; $x < $longstr; $x++) { $image = substr($hitcount,$x,1); echo "\"$image\""; } } } # now redirect randomly to one of our mirrors to download # $mirror = rand(0,100); # if ($mirror < 20) { $theURL = "http://turbulence.org/Works/freeman/mac/nag-mac.tgz"; # } else if ($mirror < 60) { # $theURL = "http://music.columbia.edu/~jason/mirror/nag-mac.tgz"; # } else { # $theURL = "ftp://presto.music.virginia.edu/pub/jfreeman/nag-mac.tgz"; #} header("Location: $theURL"); header('Content-Type: application/octet-stream'); header("Content-Disposition: attachment; filename=nag-mac.tgz"); exit; ?>