Page 1 of 1

PHP and IMAGE editing.

Posted: Thu Aug 22, 2002 5:02 pm
by Gen-ik
I've just downloaded all of the GD stuff that I need to be able to create and edit images using PHP.
Unfortunatly there doesn't seem to be any documents anywhere telling me how to 'compile' it into PHP in order for me to use it.

Can someone tell me how to do this or point me towards somewhere that can tell me. I will also need how to re-compile the GD stuff as well because I'm planning to add some futher stuff to it.

This is the first time I've done this sort of thing so I'm a bit lost :cry:

Thank you.

Posted: Thu Aug 22, 2002 7:27 pm
by volka
take a look at <?php phpinfo(); ?> and make sure there is no loadable module for gdlib.

If you really have to recompile php:
is it linux or windows?

linux: gd-documentation is here: http://www.boutell.com/gd/manual1.8.4.html
after you built it you use ./configure on php with --with-gd=<directory where you installed gd - should be in the Makefile> and refer to http://www.php.net/manual/en/install.linux.php

win32: take a look here: http://www.php.net/manual/en/install.windows.php#install.windows.build. There is a workspace called php_modules, gd-lib+module-code is in there

Posted: Thu Aug 22, 2002 8:23 pm
by Gen-ik
Right let's see...

Ahhh! So much PHP info on screen!

Ok, this is the only GD stuff I can see..


GD Support enabled
GD Version 2.0 or higher
FreeType Support enabled
FreeType Linkage with freetype
JPG Support enabled
PNG Support enabled
WBMP Support enabled


..does that mean GD is already setup and ready to go?

It's PHP version 4.2.2 on Apache 1.3.20 if that makes any difference!