Jump to content

why do i get some strange kind of output instead of an image ?


jd2007

Recommended Posts

i type this code:

 

<?php
header ("Content-type: image/png");
$img_handle = ImageCreate (230, 20) or die ("Cannot Create image");
$back_color = ImageColorAllocate ($img_handle, 0, 10, 10);
$txt_color = ImageColorAllocate ($img_handle, 233, 114, 191); 
ImageString ($img_handle, 31, 5, 5,  $z, $txt_color);
ImagePng ($img_handle);
?>

 

i get this output:

‰PNG ��� IHDR���æ������£þÓê���PLTE� ér¿`ŽL���6IDATxœc`a€ñÁ<²Ì†3ðȲIó-Ël9Ÿ«n¼Á#Ë Ïd&I¼öâõþÐ ���W‹}i!)…����IEND®B`‚

 

why ?

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.