01-01-2009, 08:42 PM
|
#13 (permalink)
|
|
The Contributor
Join Date: Sep 2008
Location: Miami
Posts: 39
Thanks: 7
|
Quote:
Originally Posted by Village Idiot
Is it at the very top of the script?
|
Yes
PHP Code:
header('Content-type: image/jpeg');
$image = imagecreate(200,25);
imagecolorallocate($image, 255, 255, 255);
$fontColor = imagecolorallocate($image, 0, 0, 0);
$startX = 15;
$startY = 5;
$string = "$variable";
imagestring($image, 3, $startX, $startY, $string, $fontColor);
imagejpeg($image);
imagedestroy($image);
|
|
|