Re: Question about PHP incudes
- From: petersprc <petersprc@xxxxxxxxx>
- Date: Wed, 21 May 2008 05:44:46 -0700 (PDT)
Hi,
Your distribution may have a php-gd package you can use.
If building from source, you can compile PHP with:
--with-gd=shared \
--with-png-dir \
--with-jpeg-dir \
--with-xpm-dir \
--with-freetype-dir \
--enable-gd-native-ttf \
--with-zlib \
--enable-exif
Regards,
John Peters
On May 20, 1:12 pm, "a...@xxxxxxxx" <ame...@xxxxxxx> wrote:
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!
.
- References:
- Question about PHP incudes
- From: art@xxxxxxxx
- Question about PHP incudes
- Prev by Date: Re: [PHP] strip_tags and nl2br
- Next by Date: RES: [PHP] Odd error
- Previous by thread: Question about PHP incudes
- Next by thread: Enterprise
- Index(es):
Relevant Pages
|