After reading 5 tutorials, I must be missing something basic.[color=blue]
>From a .php web page how can I output an image?[/color]
I created and drew the image and did:
header("Content-type: image/png");
imagepng($image ,"image.png" );
?>
....
<BODY
<img src="./image.png" height="400" width="400"></img>
But I get the broken image icon.
Also I don't really want to create the file - just output the image
directly.
>From a .php web page how can I output an image?[/color]
I created and drew the image and did:
header("Content-type: image/png");
imagepng($image ,"image.png" );
?>
....
<BODY
<img src="./image.png" height="400" width="400"></img>
But I get the broken image icon.
Also I don't really want to create the file - just output the image
directly.
Comment