XTD
Новичок
Не выводятся изображения, созданные РНР…???
Почему у меня не работает этот код?:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<title>XxX</title>
</head>
<body>
</body>
</html>
Ошибок никаких не выдает, браузер пустой.
В чем может быть проблема?
-~{}~ 17.01.07 15:18:
РНР 5.1.2
Почему у меня не работает этот код?:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<title>XxX</title>
</head>
PHP:
<?php
header("Content-type: image/png");
$im = @imagecreate(100, 50)
or die("Cannot Initialize new GD image stream");
$background_color = imagecolorallocate($im, 255, 255, 255);
$text_color = imagecolorallocate($im, 233, 14, 91);
imagestring($im, 1, 5, 5, "A Simple Text String", $text_color);
imagepng($im);
imagedestroy($im);
?>
</body>
</html>
Ошибок никаких не выдает, браузер пустой.
В чем может быть проблема?
-~{}~ 17.01.07 15:18:
РНР 5.1.2