RE: [PHP] Image output (Newb question)

From: Date: Fri, 02 Apr 2004 20:40:46 +0000
Subject: RE: [PHP] Image output (Newb question)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-182182@lists.php.net to get a copy of this message
Ok, this warning is generated and the same output Warning: Cannot modify header information - headers already sent by (output started at C:\Program Files\Apache Group\Apache\htdocs\map.php:9) Thanks. -----Original Message----- From: Dave Avent [mailto:mail@daveavent.co.uk] Sent: Friday, April 02, 2004 1:58 AM To: php-general@lists.php.net Subject: RE: [PHP] Image output (Newb question) 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. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#182182) next »