Chucklarge requested posting the actual dailycartoon.php code, so I hope what is posted below the line is what you were talking about
<?PHP
########################################################
Instructions For Dans Daily Cartoon Script
#
1) Edit Getcode section (optional)
#
2) Upload dailycartoon.php to the same folder as your images
#
3) Make sure images are named dc1.gif - dc365.gif
#
4) Upload a image named dc0.gif, This will be your default image
in case a image is missing
#
for example.
########################################################
Helpful Hints and Tips
#
You can use any size image and html alignment, alt=, etc.. tags.
#
Always upload PHP scripts in ascii format
#
You can rename this file to anything you want
#
File numbers should start from the current day of the year
Example: If this is Jan 30th then todays image is dc30.gif
#
This file is setup to display gif images not jpg or png
#
As soon as I find a decent day of the year holiday reference
I'll post the next few years holidays, etc.
#######################################################
if ($_SERVER['QUERY_STRING'] == "getcode"){
GETCODE BEGIN - You can safely edit the html below this line. Be sure to leave the ? > and < ?
?>
<html>
<title>Daily Cartoon Link Code</title>
<body>
<p><b>Replace this section with your html for the signup page (linking code)</b></p>
<p> You can decide wether or not to use this section. If you choose to use it direct signups to http://danscartoons.com/dailycartoon.php?getcode </p>
<br /><br />
<textarea rows="10" name="S1" cols="58"><img src="http://www.danscartoons.com/dailycartoon.php">
<p>Visit <a target="_top" href="http://www.danscartoons.com/"
onmouseover="window.status='Visit.'; return true;"
onmouseout="window.status=' ';">Dans Cartoons</a> for more Cartoons.</p></textarea>
</body>
</html>
<?PHP
GETCODE END - Do Not Edit Below this line
} else {
$filename = 'dc' . date(z) . '.gif';
if (file_exists($filename))
{
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header ("Content-type: image/gif");
readfile("$filename");
} else {
$filename = 'dc' . '0' . '.gif';
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header ("Content-type: image/gif");
readfile("$filename");
}
}
?>