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
, 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
could you post all of your script?
Is there any white space before your ?php tag?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
]
Subject: RE: [PHP] Image output (Newb question)
could you post all of your script?
Is there any white space before your ?php tag?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
change your script to just this:
?php
$link = mysql_connect(localhost, root, );
if ($link){
header(Content-type: image/png);
$im = imagecreatefrompng(images/map/map-15x9.png);
imagepng($im); //,images/.session_id()..png
imagedestroy($im);
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
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
the
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
you should have script, call it image.php or something like that, the
only thing that should be in that script is this:
?php
$link = mysql_connect(localhost, root, );
if ($link){
header(Content-type: image/png);
$im = imagecreatefrompng(images/map/map-15x9.png);
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
10 matches
Mail list logo