I\'ve recently created a small php script to grab comics from comics.com. The source code is as follows:
function get_comic($comic_name)
{
$grab = 0;
$BaseURL = \"http://www.unitedmedia.com\";
$GrabStart = \"/comics/\".$comic_name.\"/archive/images/\";
$GrabEnd = \"&EmailDate\";
$GrabLoc = \"http://www.unitedmedia.com/comics/\".$comic_name.\"/index.html\";
$fp = fopen($GrabLoc, \"r\");
$content = fread($fp, 300000);
fclose($fp);
$grab = ereg(\"$GrabStart(.*)$GrabEnd\", $content, $printing);
$imageloc = $BaseURL . $GrabStart . $printing[1];
return $imageloc;
}
I then print the comic with the following bit of php code:
echo \"<IMG SRC=\".get_comic(dilbert).\">\";
However, this little system seems to work only with dilbert. Any help is appreciated. Thanks!