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:[EMAIL PROTECTED] Sent: Friday, April 02, 2004 1:58 AM To: [EMAIL PROTECTED] 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:[EMAIL PROTECTED] 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php