Re: image problem

From: Date: Mon, 26 Jun 2000 10:46:53 +0000
Subject: Re: image problem
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-3098@lists.php.net to get a copy of this message
In article <3957144E.BBCA7062@mahindrabt.com>, dipesh <dipesh@mahindrabt.com> wrote: > 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 Yep, you need to use a header. The browser is getting the right information, but you are not telling it what type of info it is. Try this: Header("Content-type: image/gif"); $im = imagecreatefromgif("images/city.gif"); // setpixel is in loop imagesetpixel($im,$i,$i,99); // loop ends imagegif($im); TTFN Nik -- RISCOS.org mailing list. To subscribe send a blank email to: riscos-org-subscribe@egroups.com

« previous php.general (#3098) next »