Не выводится изображение( Где ошибка?
Добавлено: 12 мар 2011, 18:27
<?php
header("Content-type: image/png");
$img = imagecreate(320, 240);
$background_color = imagecolorallocate($img, 0 ,0, 0);
$white = imagecolorallocate ($img, 255, 255, 255);
imagettftext($img, 20, 0,10,20,$white,"arial.ttf","Test");
imagepng($img);
imagedestroy($img);
?>
header("Content-type: image/png");
$img = imagecreate(320, 240);
$background_color = imagecolorallocate($img, 0 ,0, 0);
$white = imagecolorallocate ($img, 255, 255, 255);
imagettftext($img, 20, 0,10,20,$white,"arial.ttf","Test");
imagepng($img);
imagedestroy($img);
?>