#25370 [Opn->Bgs]: showing garbage
| From: | sniper@php.net | Date: | Wed, 03 Sep 2003 04:52:25 +0000 |
| Subject: | #25370 [Opn->Bgs]: showing garbage | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-47117@lists.php.net to get a copy of this message | ||
ID: 25370
Updated by: sniper@php.net
Reported By: aamirrajpoot at hotmail dot com
-Status: Open
+Status: Bogus
-Bug Type: *Compile Issues
+Bug Type: GD related
Operating System: XP with IIS
PHP Version: 4.3.3
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions.
Thank you for your interest in PHP.
This is not a support forum, please go ask this kind of RTFM questions
elsewhere.
Previous Comments:
------------------------------------------------------------------------
[2003-09-02 18:41:42] aamirrajpoot at hotmail dot com
Description:
------------
well here is the code
and the result infront of u . i m very new to php. well done many
things coz i know the asp and someother . but never done about GD or
created the images on fly. so testing something with gd lib. just done
remove the semicollon from the extension to run php_gd2.dll file .
Reproduce code:
---------------
<?
header ("Content-type: image/gif");
$im = @ImageCreateFromGIF ("d:\php\php.gif");
if(!$im) {
$img_handle = ImageCreate (200, 20) or die ("Cannot Create
image");
$back_color = ImageColorAllocate ($img_handle, 0, 10, 10);
$txt_color = ImageColorAllocate ($img_handle, 235, 235, 51);
ImageString ($img_handle, 10, 25, 5, "Image Not Found",
$txt_color);
ImagePng ($img_handle); }
Else {
echo "Image is Found"; }
?>
<htmL>
<head><title>My first app</title></head><body
bgcolor=red></body></html>
Expected result:
----------------
well expect result is that to show me an image the image not fonund or
simply print the text image is found and it is on the red bg. with the
title of the document is my first app but instead of this all the
result is very different...
Actual result:
--------------
PNG IHDRÈòjàPLTE ëë3'5zIDATxc`~ÀL2¶ ù@ .Ã9Æ
ØdaÑm?~ñã3:
æcÒe³39ÅÛÒ$äÛÒ¤gC9&Á¸í0Ð43iÞ6$óoÒ0ÎÃ&s#ýcV7Ì}i
lÉÖ<{ìÍΧ?üÀØfÃtÛÁÛ<·´à öBíì,£C*7IEND®B`
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=25370&edit=1