On Sat, 2002-10-05 at 16:59, New Disorder Records wrote:
> Hi,
>  I am on a redhat linux box running apache 1.3.26, sybase 11.9.2 and php 
> 4.2.3.  I've been trying to get gd with jpeg output to work.  I have been 
> configuring php with this command:
> 
> ./configure --with-gd --with-jpeg-dir=/usr/lib 
> --with-sybase-ct=/opt/sybase-11.9.2 --enable-gd-native-ttf 
>--with-apache=../apache_1.3.26
> 
> though I've tried setting --with-gd to 
> =yes
> =/usr
> =/usr/lib
> =../gd-1.8.4
> 
> I've also tried all combinations of setting --with-jpeg-dir to
> =/usr
> =../jpeg-6b
> =/usr/local/lib
> 
> all of these seem to be reasonable settings, and all of them compile fine.  
> However, when I run the code:
> 
> <?php
> $im = imagecreate(50,100);
> $white = imagecolorallocate($im, 255,255,255);
> $black = imagecolorallocate($im, 0, 0, 0);
> imagefilledrectangle($im, 0,0, 49, 99, $white);
> imagefilledrectangle($im, 15, 15, 20, 60, $black);
> imageJpeg($im);
> 
> ?>
> 
> I get this error:
> 
> [Sat Oct  5 13:47:47 2002] [error] PHP Fatal error:  Call to undefined 
> function:  imagejpeg() in /usr/www/gold/imgen/index.php on line 7
> 
> That makes me think that gd is installed, because the other image commands 
> don't choke, but what the hell do I have to do to make imagejpeg work?
> 
> Thanks,
> Ernst Schoen-Rene
> 
 Do you have a header showing that the content should be jpeg? as in
header("Content-type; image/png");



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

Reply via email to