Problems producing an image
| From: | Harshdeep S Jawanda | Date: | Thu, 06 Dec 2001 03:20:05 +0000 |
| Subject: | Problems producing an image | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-76820@lists.php.net to get a copy of this message | ||
I am using the following code to try to produce a test image:
<?
//phpinfo();
$gif = ImageCreate(200,200);
$bg = ImageColorAllocate($gif,0,0,0);
$tx = ImageColorAllocate($gif,255,128,128);
ImageFilledRectangle($gif,0,0,200,200,$bg);
ImageString($gif,3,70,90,"it works !",$tx);
// send the image
header("content-type: image/jpeg");
imagejpeg($gif);
?>
I am trying to display this image on the page
http://www.harshdeepjawanda.com/t2.html .
Phpinfo() shows that PHP was compiled with: --with-gd, --with-jpeg-dir
and --with-png-dir, among others. Why then am I not able to see any image?
=====
Please send all emails to my automatically redirecting
address: harshdeep@graffiti.net
Regards,
Harshdeep S Jawanda
[harshdeep@graffiti.net]
__________________________________________________
Do You Yahoo!?
Send your FREE holiday greetings online!
http://greetings.yahoo.com