change your script to just this:

$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"
        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 (
To unsubscribe, visit:

Reply via email to