It looks like you are ' include()'-ing the generation-scripts,

If you have your index.php (or whatever) with images,
you should use something like '<img src="gd-image.php?bla=ha" />'
and in your gd-image.php you need to set the right mime-type first:
header("Content-Type: image/jpeg");

 But this is all PHP-stuff and not mandrake-stuff....
Check www.php.net ....
    /m


----- Original Message -----
From: "Eli Stair" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, October 16, 2002 17:44
Subject: Re: [expert] Unable to get GD to function with PHP4/Apache2


> Sorry to reply to myself ... but I've commented out the imagegif stanza from
> test_setup.php, as gif isn't supported anyhow by newer versions of GD.  Now the
> "call to undef. function" is gone, obviously the function was removed from GD
> itself.
>
> Now the test continues with PNG and JPG, however when displaying PNG, all that
> appears is "Test to see if PNG graphs work" surrounded by an asci text box.
>
> For JPG, the same heading with the text box, but below it is the raw data of a
> JPG image, not rendered by displayed as ascii text.
> ~
> ÿØÿàCREATOR:gd-jpeg v2.0 (using IJG JPEG v62), default quality
> ~
>
> Note, most of the characters don't copy into this mail.  If you want to see exactly
> what's going on, go to "http://mitglied.lycos.de/animeflash/";, he seems to be having
> the same issue.
>
> I can't seem to find anything on the web that resolves this, some say it is a
> GD "extension" issue, others having html tags in the .php.  I've stripped all HTML
> out of test_setup.php, same thing happens, and gd.so is the only GD module loaded
> by PHP/Apache related to gd..
>
> Any ideas?
>
> /eli
>
>
>
> On Wed, 16 Oct 2002 10:47:44 -0400
> Eli Stair <[EMAIL PROTECTED]> wrote:
>
> > I'm having an issue with GD/PHPlot under Apache2. I'm installing the requisites for
> > ACID and in testing PHPlot, it seems that the PHP scripts aren't sourcing each 
>other
> > properly, and this continues into JPGraph and anything that uses GD, including
> > JPGraph.  Verified that PHP itself IS working, format_chart.php works fine.  
>Verified
> > gd is loaded and supporting PNG and JPG with phpinfo.
> >
> >
> > When loading :phplot/examples/test_setup.php, I get this error:
> > ~
> > Test to see if GIF graphs work
> > Fatal error: Call to undefined function: imagegif() in 
>/var/www/html/phplot/examples/test_setup.php on line 29
> > ~
> > Line 29 being :             if (! ImageGif($im_test)) {
> >
> > ImageGif (as well as ImagePNG and ImageJPG) are defined in phplot.php, which is
> > readable by apache, as is everything in /var/www/, phplot.php is not called from
> > test_setup.php
> >
> > I'm (obviously) pretty unfamiliar with PHP, so if anyone has any recommendations of
> > where to look, pointers on what to try.. thanks!  Thanks for any input.
> >
> > Cheers,
> >
> > /eli
> >
> >
> >
> > apache2-2.0.43-1mdk
> > apache2-mod_php-2.0.43_4.2.3-1mdk
> > php-gd-4.2.3-1mdk
> > phplot-4.4.6-1mdk
> >
> >
>
>


--------------------------------------------------------------------------------


> Want to buy your Pack or Services from MandrakeSoft?
> Go to http://www.mandrakestore.com
>


Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to