Hi, 
I have configured and installed php 4.2.1 enabling the support for gd
library.
The output of phpinfo(), in the section relative to gd, says:

GD Support              enabled
GD Version              2.0 or higher
FreeType Support        enabled
FreeType Linkage        with freetype
JPG Support             enabled
PNG Support             enabled
WBMP Support            enabled 

So I did a sample script like this:

Header( "Content-type: image/jpeg");
$image = imagecreate(200,200); 
$maroon = ImageColorAllocate($image,100,0,0); 
ImageFilledRectangle($image,0,0,200,200,$maroon); 
ImageJpeg($image);

It doesn't work, I don't get any errors, I see only the space where
should be placed the image, I've also tried with png but it's the same...
I use RedHat Linux, Apache 1.3.23, PHP 4.2.1 and my configure command is
the follow:

./configure' '--with-apxs=/usr/sbin/apxs'
'--with-mysql=/usr/local/mysql/' '--enable-xslt'
'--with-xslt-sablot=/usr/ local' '--with-java=/usr/java/j2sdk1.4.0'
'--with-freetype-dir=/usr/lib' '--with-gd=/usr/local'
'--enable-gd-native-ttf' '--enable-gd-imgrstrttf' '--enable-gd-all'
'--with-zlib-dir=/usr/local/include/' '--with-jpeg-dir=/usr/local'
'--with-png- dir=/usr/local'

Can someone help me understand why I dont'see images ??

Thanks, 

bye


-- 
PHP Install Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to