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);
        mysql_close($link);
}
else{
        echo("Not connected.");
}
?>


Don't have any white space before <?php, if you do have any white space
or text before your header("Content-type: image/png"), I believe php
will automatically output the Content-type: text/html , so your
Content-type: image/png will not work.

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

Reply via email to