image problem
| From: | dipesh | Date: | Mon, 26 Jun 2000 08:29:02 +0000 |
| Subject: | image problem | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-3088@lists.php.net to get a copy of this message | ||
hi all
im trying this simple code for images and seems doesnt work
it outputs characters instead of an image
plz let me know how do i output image and do i need to use header if yes
how
$im = imagecreatefromgif("images/city.gif");
// setpixel is in loop
imagesetpixel($im,$i,$i,99);
// loop ends
imagegif($im);
Output is code like this in place of image
ñ $J(Q¢@8è DthÜ!?$XÐàA$L0a &LP
&LPà¡q&Lp
&L0a &L0aÂ?;?À? <0¡Â
:|1¢Ä?;AD"E)R¤H1â¡q8?`A&T¸?aC
Thanx in advance
--
Warm Regards
Deepesh