This way works fine!!
Thank you very much.
-Original Message-
From: Matt Matijevich [mailto:[EMAIL PROTECTED]
Sent: Friday, April 02, 2004 2:10 PM
To: [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Image output (Newb question)
you should have script, call it image.php or
you should have script, call it image.php or something like that, the
only thing that should be in that script is this:
no html tags in there, no whitespace.
to see the image you could call the page like this
http://www.yourdomain.whatever/image.php . you could call it in a
iumage tag like this
script?
(I used your format in last script with the same result)
Thanks
-Original Message-
From: Matt Matijevich [mailto:[EMAIL PROTECTED]
Sent: Friday, April 02, 2004 1:35 PM
To: Matt Matijevich; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Image output (Newb question
PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Image output (Newb question)
Sorry for responding to myself but I also need to ad that you should
not echo or print anything out in your php code before your header
function or the text/html header will be sent.
--
PHP General Mailing List (http
Sorry for responding to myself but I also need to ad that you should
not echo or print anything out in your php code before your header
function or the text/html header will be sent.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
change your script to just this:
Don't have any white space before http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
om: Matt Matijevich [mailto:[EMAIL PROTECTED]
Sent: Friday, April 02, 2004 12:49 PM
To: [EMAIL PROTECTED]; [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Subject: RE: [PHP] Image output (Newb question)
could you post all of your script?
Is there any white space before your http://www.php.net/)
To unsubscrib
could you post all of your script?
Is there any white space before your http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
, 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]
Se
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 (Ne
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.
11 matches
Mail list logo