Есть файл "test.php".
Код: Выделить всё
<?php
$image = ImageCreateFromPng("image.png");
Header("Content-type: image/png");
ImagePng($image);
ImageDestroy($image);
?>
Код: Выделить всё
<img src="test.php">
Когда открываю "test.php":
Warning: Cannot modify header information - headers already sent by (output started at
C:\Internet\home\localhost\www\test\test.php:9) in
C:\Internet\home\localhost\www\test\test.php on line 11
и куча символов в этом роде.
‰PNG IHDRвш%¬ IDATxњнЭw”\Ч}рЯ-ЇNџќн :@‚IЂE–(RT—HIсQЋ"[>‘ПQ,ЗЋ\вc+vм4[‰г?lзд$.ІгД–ќёИEІм#YЌEЉ mu±‹УЯМ