RE: [PHP] Image output (Newb question)

2004-04-02 Thread Dave Avent
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

RE: [PHP] Image output (Newb question)

2004-04-02 Thread Fidencio Monroy
, 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

RE: [PHP] Image output (Newb question)

2004-04-02 Thread Matt Matijevich
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

RE: [PHP] Image output (Newb question)

2004-04-02 Thread Fidencio Monroy
] 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

RE: [PHP] Image output (Newb question)

2004-04-02 Thread Matt Matijevich
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);

RE: [PHP] Image output (Newb question)

2004-04-02 Thread Matt Matijevich
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

RE: [PHP] Image output (Newb question)

2004-04-02 Thread Fidencio Monroy
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

Re: [PHP] Image output (Newb question)

2004-04-02 Thread Red Wingate
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

RE: [PHP] Image output (Newb question)

2004-04-02 Thread Matt Matijevich
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);

RE: [PHP] Image output (Newb question)

2004-04-02 Thread Fidencio Monroy
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