> It looks like you are ' include()'-ing the generation-scripts,
The code follows...
> But this is all PHP-stuff and not mandrake-stuff....
> Check www.php.net ....
Actually, the reason I posted to expert (and Cooker) is that this file in the
phplot rpm seems to be broken, and I wanted to verify this. After
wasting a couple hours tracking this down I found out that GD is
working fine, it really is just this file that doesn't work.
Since that is the case, it should be removed from the package, or
fixed to work correctly with current versions of PHP/GD, considering
this is _THE_ file used to verify that everything works.
Thanks,
/eli
Below is the /examples/test_setup.php file:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<TITLE>PHPlot Quickstart</TITLE>
</HEAD>
<BODY>
<h2>PHPlot Quickstart</h2>
This page will test to see if you have GD and PHP set up to
view images correctly. You should see at least one
of the three images below.
<p>
<?php
/* *************************
error_reporting(4);
$im_test = ImageCreate(2,2);
$test = (ImagePng($im_test)) ;
ImageDestroy($im_test);
exit;
**************************** */
?>
<TABLE border=1>
<TR><TD>Test to see if GIF graphs work</TD></TR>
<TR><TD>
<?php
$im_test = ImageCreate(1,1);
echo "<!--";
if (! ImageGif($im_test)) {
echo "-->";
echo "GIF NOT ENABLED<br>";
} else {
echo "-->";
?>
<IMG
SRC="inline_image.php?file_format=gif&which_title=YES_GIF_IS_ENABLED"></TD></TR>
<?php
}
ImageDestroy($im_test);
?>
</TABLE>
<p>
<TABLE border=1>
<TR><TD>Test to see if PNG graphs work</TD></TR>
<TR><TD>
<?php
$im_test = ImageCreate(1,1);
echo "<!--";
if (! ImagePng($im_test) ) {
//In php3 this is a fatal error, in php4 it is a warning.
echo "-->";
echo "PNG NOT ENABLED";
} else {
echo "-->";
?>
<IMG
SRC="inline_image.php?file_format=png&which_title=YES_PNG_IS_ENABLED"></TD></TR>
<?php
}
ImageDestroy($im_test);
?>
</TABLE>
<p>
<TABLE border=1>
<TR><TD>Test to see if JPEG graphs work</TD></TR>
<TR><TD>
<?php
$im_test = ImageCreate(1,1);
if (! ImageJPEG($im_test) ) {
echo "JPEG NOT ENABLED";
} else {
?>
<IMG
SRC="inline_image.php?file_format=jpg&which_title=YES_JPG_IS_ENABLED"></TD></TR>
<?php
}
ImageDestroy($im_test);
?>
</TABLE>
</body>
</html>
>
Want to buy your Pack or Services from MandrakeSoft?
Go to http://www.mandrakestore.com