Question about PHP incudes



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
URLwhich I am entering.......

My error log says this:

PHP Fatal error: Call to undefined function: imagecreate() in /
apache/graph.php on line 9

Where do I get these functions? I'm kind of lost here......

Thank you!
.



Relevant Pages

  • PHP includes
    ... Are these part of PHP? ... GD.xs:227: warning: passing arg 1 of `gdImageCreateFromGif' from ...
    (php.general)
  • Re: Question about PHP incudes
    ... you can compile PHP with: ... GD.xs:227: warning: passing arg 1 of `gdImageCreateFromGif' from ...
    (php.general)
  • Re: PHP sessions and disabled cookies
    ... Cookies are blocked in my ... I do not see the URL containing the session ID. ... [PHP] ... A warning appears if the specified function is not defined, ...
    (php.general)
  • getting PHP5 sessions working when browser doesnt accept cookies.
    ... Here is my PHP ... The brower URL does not contain the session ID ... A warning appears if the specified function is not defined, ... support by the security team. ...
    (php.general)
  • session trouble
    ... everything else considering PHP is working perfectly and as far as I see ... the session tmp file is created in my tmp dir and I really don't see a valid ... A warning appears if the specified function is not defined, ... Setting certain environment variables may be a potential security breach. ...
    (alt.php)