Thank You NiK for you answer,
I have this code from textbook and I still cannot see a picture.
<?php
$height=200;
$width=200;
$im=imagecreate($width, $height);
$white=imagecolorallocate($im, 255, 255, 255);
$black=imagecolorallocate($im, 0, 0, 0);
imagefill($im, 0,0, $black);
imageline($im, 0, 0, $width. $height, $white);
Header("Content-type: image/png");
imagepng($im);
imagedestroy($im);
?>
I have gd2 in php instalation. and I have made extension for gd2 in php.ini accesible but if I want to see it in IE 6 I just see mark for the image (small red cross) and no image. (or I can read:
Warning: Cannot modify header information - headers already sent by (output started at E:\PHPfiles\obrazky\obr1.php:2) in E:\PHPfiles\obrazky\obr1.php on line 15)
If you have any idea what I am doing wrong please let me know.
Thanks Martin
|