RE: [PHP] Image output (Newb question)

From: Date: Fri, 02 Apr 2004 09:57:50 +0000
Subject: RE: [PHP] Image output (Newb question)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-182111@lists.php.net to get a copy of this message
Header ("Content-type: image/png"); $im = imagecreatefrompng("images/map.png"); imagepng($im); ImageDestroy ($im); -----Original Message----- From: Fidencio Monroy [mailto:fidencio_monroy@hotmail.com] Sent: 02 April 2004 10:55 AM To: (PHP General List) Subject: [PHP] Image output (Newb question) Hi, I need to display some PNG pictures in a script; from help I got $im = imagecreatefrompng("images/map.png"); imagepng($im); It outputs the binary data as a string, kind of trash; what do I need to set to tell the browser how to interpret it? Thanks. Fidencio Monroy.

« previous php.general (#182111) next »