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:[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 <?php tag?

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to