Try this instead
.HTACCESS
CODE
<Files *.jpg>
ForceType application/x-httpd-php
</Files>
randomsig.png
CODE
<?php
header("Content-type: image/jpg");
//vars
$randval = 10; //rand(0,10);
if ($randval = 10) {
$randval = rand(0,3);
$imag = imagecreatefromjpeg("fullcomics\lg$randval.jpg");
imagejpeg($imag, "",75);
imagedestroy($imag);
} else {
$imag = imagecreate(771,235);
$randval = rand(0,3);
$imagf1 = imagecreatefromjpeg("partcomics\lgf1$randval.jpg");
$randval = rand(0,3);
$imagf2 = imagecreatefromjpeg("partcomics\lgf2$randval.jpg");
$randval = rand(0,3);
$imagf3 = imagecreatefromjpeg("partcomics\lgf3$randval.jpg");
imagecopy ( $imag, $imagf1, 0, 0, 0, 0, 257, 235);
imagecopy ($imag,$imagf2,257,0,0,0,257,235);
imagecopy ( $imag, $imagf3, 514, 0, 0, 0, 257, 235);
imagejpeg($imag);
imagedestroy($imag);
}
?>
I didn't check for errors in code, since I'm assuming the only error is the not getting parsed.
The .htaccess tells the server to parse .jpg files as .php files.
Also, the might need to be jpeg, not jpg. I use pngs, so I dunno.
If your doing this on your local apache installation, and you have windows, then you'll need to do this on a web host that has Linux, because windows doesn't support files with no names.