And Now: Getting PHP graphics to work
I did the rpm install thing and phpinfo() has this:
'--with-gd' '--enable-gd-native-ttf'
does this mean that GD graphics should work?
===============================================
I try graphics and get this message:
The image
http://localhost/graph23.php cannot be displayed, because it contains errors.
when I get a message "contains errors" I know I have regressed back to a time before 1986 when compilers began to report error number & line numbers.
===============================================
this is graph23.php
<?php header("content-type:image/png");
$Image=ImageCreate(400,200);
$green=ImageColorAllocate($Image,0,255,0);
$red=ImageColorAllocate($Image,255,0,0);
imagesetthickness($Image,5);
Imageline($Image,10,10,200,150,$red);
ImagePNG($Image);
ImageDestroy($Image);
?>
===============================================
so what are the errors contained in this, the simplest graphics demo
I can find?
+++++++++++++++++++++++++++++++++++++++++++++++