Public feed #381419

Anonymous

public text v1 · immutable
Raw Edit
·published 2007-03-04 20:58 UTC
rendered paste body
<?php

$date = strtotime("November 18th, 1985");

while(true) {

$year = date("y", $date);
$month = date("m", $date);
$day = date("d", $date);

$tmp = file_get_contents('http://www.transmogrifier.org/ch/comics/'.$year.'/'.$month.'/'.$day.'.gif');

$file = "19$year-$month-$day.gif";

$fh = fopen($file, 'w') or die("error");
fwrite($fh, $tmp); 
echo "\n$file";

$date = $date + 86400;

if(date("y",$date) == 96) { exit; }

}

echo "\n\n";
exit;

?>