durix
28.08.2009, 22:38:34
Hallo ich hoffe jemand kann mir helfen versuche seit tagen herauszukriegen warum ein simpler Script wie dieser hier:<?php
$image=imagecreate(200,200);
$red=imagecolorallocate($image, 255, 0, 0);
header('Content-type: image/png');
imagepng($image);
?>obwohl die Funktion von GD in php mit drin ist laut php info. und laut einem test script <?php
print "<pre>";
print_r(gd_info() );
print"</pre>";
?> der das ergebnis liefert Array
(
[GD Version] => 2.0 or higher
[FreeType Support] => 1
[FreeType Linkage] => with freetype
[T1Lib Support] => 1
[GIF Read Support] => 1
[GIF Create Support] => 1
[JPG Support] => 1
[PNG Support] => 1
[WBMP Support] => 1
[XPM Support] =>
[XBM Support] =>
[JIS-mapped Japanese Font Support] =>
)
das fast alle bild formate unterschtüzt werden .
trotz allem liefert mir php dieswn fehler Warning: Cannot modify header information - headers already sent by (output started at /var/www/gdtest0.php:3) in /var/www/gdtest0.php on line 7 obwohl ich keine leer zeichen da habe und ich nicht wirklich weiss warum es dazu führt das php da so meckert ich hoffe ich habe euch genug infos geliefert .
Ja und danke im vorraus.
$image=imagecreate(200,200);
$red=imagecolorallocate($image, 255, 0, 0);
header('Content-type: image/png');
imagepng($image);
?>obwohl die Funktion von GD in php mit drin ist laut php info. und laut einem test script <?php
print "<pre>";
print_r(gd_info() );
print"</pre>";
?> der das ergebnis liefert Array
(
[GD Version] => 2.0 or higher
[FreeType Support] => 1
[FreeType Linkage] => with freetype
[T1Lib Support] => 1
[GIF Read Support] => 1
[GIF Create Support] => 1
[JPG Support] => 1
[PNG Support] => 1
[WBMP Support] => 1
[XPM Support] =>
[XBM Support] =>
[JIS-mapped Japanese Font Support] =>
)
das fast alle bild formate unterschtüzt werden .
trotz allem liefert mir php dieswn fehler Warning: Cannot modify header information - headers already sent by (output started at /var/www/gdtest0.php:3) in /var/www/gdtest0.php on line 7 obwohl ich keine leer zeichen da habe und ich nicht wirklich weiss warum es dazu führt das php da so meckert ich hoffe ich habe euch genug infos geliefert .
Ja und danke im vorraus.