jd2007 Posted July 18, 2007 Share Posted July 18, 2007 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 ? Link to comment https://forums.phpfreaks.com/topic/60544-why-do-i-get-some-strange-kind-of-output-instead-of-an-image/ Share on other sites More sharing options...
jitesh Posted July 18, 2007 Share Posted July 18, 2007 I have run your script and watching image. check your GD Library configuration. Link to comment https://forums.phpfreaks.com/topic/60544-why-do-i-get-some-strange-kind-of-output-instead-of-an-image/#findComment-301194 Share on other sites More sharing options...
jd2007 Posted July 18, 2007 Author Share Posted July 18, 2007 can u pls help me configure...what to do ? pls help... Link to comment https://forums.phpfreaks.com/topic/60544-why-do-i-get-some-strange-kind-of-output-instead-of-an-image/#findComment-301198 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.