then copy (CMD-C) & paste (CMD-V)
<?php //header('Refresh: 2'); /*TO USE: For webTV: Add code below to a php page. Then on a html page (or in a sig) use PC User: uncomment header('Refresh: 2'); at the top of your php page just below the opening php command.*/ # make an array $pix[1] = "pet_01.jpg"; $pix[2] = "pet_02.jpg"; $pix[3] = "pet_03.jpg"; $pix[4] = "pet_04.jpg"; $pix[5] = "pet_05.jpg"; $pix[6] = "pet_06.jpg"; # count 'em up $num = count($pix); # pick one out $rand_pix = rand(1, $num); # make the image header("content-type: image/jpeg"); $image =imagecreatefromjpeg("pet_0$rand_pix.jpg"); $other=imagecreatefromjpeg('ball.jpg'); $white=imagecolorallocate($image, 255, 255, 255); $red=imagecolorallocate($image, 255, 0, 0); imagefilledrectangle($other, 50, 10, 260, 290, $red); imagefilledellipse($other, 155, 150, 180, 270, $white); imagecopymerge($other, $image, 80, 50, 0, 0, 150, 200, 100); imagettftext($other, 20, 0, 55, 70, $white, "lefilm.ttf", "GRAD-PETS"); imagejpeg($other); imagedestroy($image); imagedestroy($other); ?>