Jump to content

[SOLVED] The image cannot be displayed, because it contains errors !


yami007

Recommended Posts

this is the code so far :

<?
Header("Content-type: image/png");
$im = ImageCreate(630,80);
$blue = ImageColorAllocate($im,0x5B,0x69,0xA6);
$white = ImageColorAllocate($im,255,255,255);
$black = ImageColorAllocate($im,0,0,0);
ImageTTFText($im, 45, 0, 10, 57, $black, "CANDY", $text);
ImageTTFText($im, 45, 0, 6, 54, $white, "CANDY", $text);
ImagePNG($im);
?>
<IMG src="txt.php?text=<?echo urlencode($text)?>">

 

well this isnt my code, this is from the PHP ADVANCED TUTORIAL.

i followed the example untill the end but i ddnt work and gave me that error.

where is the problem??

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.