Here is a code snippet used to create the image....
header("Content-type: image/jpg"); $image = imagecreatefromjpeg("template_cpn.jpg"); $red = imagecolorallocate( $image, 255,0,0 ); imagestring($image, 2, 306, 200, $couponcode, $red); imagestring($image, 2, 306, 235, $exp, $red); imagestring($image, 2, 175, 338, $myname, $red); imagestring($image, 2, 175, 360, $myemail, $red); imagejpeg($image); imagedestroy($image);
Now the way I have it set up, is that there is a PHP file that generates the image (the above code). Then I have a parent PHP page that calls that page like so:
$theurl = "cstl.php?dk=soemthinghere echo "<img src=\"$theurl\">";
See any issues in my code or setup?
Any ideas?
d
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php