[EMAIL PROTECTED] wrote:
the most common cause of this error is doing a redirect, using the
header() function, but writing output to the browser before that function
is called.
Now Ive configured php like this:

'./configure' '--with-mysql' '--with-apxs=/www/bin/apxs' '--with-gd' '--with-zlib' '--with-freetype-dir=/root/freetype-2.1.10' '--enable-gd-native-ttf'


   gd

GD Support      enabled
GD Version      bundled (2.0.28 compatible)
FreeType Support        enabled
FreeType Linkage        with freetype
GIF Read Support        enabled
GIF Create Support      enabled
PNG Support     enabled
WBMP Support    enabled
XBM Support     enabled


Now I get the following error by testing this script:

*Warning*: Cannot modify header information - headers already sent by (output started at /www/htdocs/moneyflexx/ttf_test.php:2) in */www/htdocs/moneyflexx/ttf_test.php* on line *3*
GIF87a�
<?
Header ("Content-type: image/gif");
$im = imagecreate (400, 30);
$black = ImageColorAllocate ($im, 0, 0, 0);
$white = ImageColorAllocate ($im, 255, 255, 255);
ImageTTFText ($im, 20, 0, 10, 20, $white, "/ttf/arialbd.ttf",
             "Teste... Omega: &#937;");
Imagegif ($im);
ImageDestroy ($im);
?>

Reply via email to