RE: [PHP] Image output (Newb question)

From: Date: Fri, 02 Apr 2004 21:15:08 +0000
Subject: RE: [PHP] Image output (Newb question)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-182187@lists.php.net to get a copy of this message
This is the entire html doc ============================================================================ <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body> <?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); mysql_close($link); } else{ echo("Not connected."); } ?> </body> </html> ============================================================================ -----Original Message----- From: Matt Matijevich [mailto:matijevich@alliancetechnologies.net] Sent: Friday, April 02, 2004 12:49 PM To: mail@daveavent.co.uk; fidencio_monroy@hotmail.com Cc: php-general@lists.php.net Subject: RE: [PHP] Image output (Newb question) could you post all of your script? Is there any white space before your <?php tag?

« previous php.general (#182187) next »