Вставляю PNG картинку <IMG SRC="cgi-bin/image.php">
в image.php следующее:
<?php
Header("Content-type: image/png");
$string=implode($argv," ");
$im = imagecreatefrompng("image.png");
$orange = ImageColorAllocate($im, 220, 210, 60);
$px = (imagesx($im)-7.5*strlen($string))/2;
ImageString($im,3,$px,9,$string,$orange);
ImagePng($im);
ImageDestroy($im);
?>
Картинка не грузится и в логах сервера (Apache) следующее:
[error] (8)Exec format error. exec of /var/www/cqi-bin/image.php failed
[error] Premature end of script headers: /var/www/cqi-bin/image.php
В чем может быть дело?