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