This is a discussion on PHP includes within the PHP General forums, part of the PHP Programming Forums category; Hi, Ok, this might seem like a stupid question, but I'm trying to create a line chart in PHP. ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi, Ok, this might seem like a stupid question, but I'm trying to create a line chart in PHP. There are a lot of examples on how to do this. The issue is, all of these seem to use some modules: imagecolorallocate, imageline, etc...... Are these part of PHP? Are they part of GD? I installed GD 1.19. There were a couple of warnings in the first step: GD.xs: In function `XS_GD__Image__newFromGif': GD.xs:227: warning: passing arg 1 of `gdImageCreateFromGif' from incompatible pointer type GD.xs: In function `XS_GD__Image__newFromXbm': GD.xs:237: warning: passing arg 1 of `gdImageCreateFromXbm' from incompatible pointer type GD.xs: In function `XS_GD__Image__newFromGd': GD.xs:247: warning: passing arg 1 of `gdImageCreateFromGd' from incompatible pointer type Running Mkbootstrap for GD () chmod 644 GD.bs rm -f blib/arch/auto/GD/GD.so gcc -shared -L/usr/local/lib GD.o -o blib/arch/auto/GD/GD.so libgd/ libgd.a \ -lm \ chmod 755 blib/arch/auto/GD/GD.so cp GD.bs blib/arch/auto/GD/GD.bs chmod 644 blib/arch/auto/GD/GD.bs Manifying blib/man3/GD.3pm But it seemed to install properly: Installing /usr/share/man/man3/GD.3pm Writing /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi/auto/ GD/.packlist Appending installation info to /usr/lib/perl5/5.8.5/i386-linux-thread- multi/perllocal.pod I took an example from the web, and, all I get on the page is the URL which I am entering....... My error log says this: PHP Fatal error: Call to undefined function: imagecreate() in /prod/ apache/chicagorsvp/graph.php on line 9 Where do I get these functions? I'm kind of lost here...... Thank you! |