Hello,
i just started php and i having a problem to open an image from my directory and show it on the browser with a background. It may seems like a piece of cake but i really can't figure it out. I used the following codes;
<body bgcolor=#000000>
<?PHP
$im=imagecreatefrompng("humanp.png");
header('content-type: image/png');
imagepng($im);
imagedestroy($im);
?>
It works fine if i ignore the background setting and only display the image and vice versa. They just cannot produced the desired output when placed together. Is there something i miss out? Any help/comment would be appreciated. Thanks.
i just started php and i having a problem to open an image from my directory and show it on the browser with a background. It may seems like a piece of cake but i really can't figure it out. I used the following codes;
<body bgcolor=#000000>
<?PHP
$im=imagecreatefrompng("humanp.png");
header('content-type: image/png');
imagepng($im);
imagedestroy($im);
?>
It works fine if i ignore the background setting and only display the image and vice versa. They just cannot produced the desired output when placed together. Is there something i miss out? Any help/comment would be appreciated. Thanks.