Image functions - Installation

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Bongulim
Forum Newbie
Posts: 21
Joined: Thu Aug 07, 2003 12:50 pm

Image functions - Installation

Post by Bongulim »

I need a helpful tip on how to install 'GD library' (they http://il.php.net/manual/en/ref.image.php say it's required) or libraries in general.
I'm stuck, I just want to get these functions to work.
I'm using win XP. any links/explanations/tutorials/TIPS how to install that would be welcome here.
User avatar
evilmonkey
Forum Regular
Posts: 823
Joined: Sun Oct 06, 2002 1:24 pm
Location: Toronto, Canada

Post by evilmonkey »

On Windows it's really easy.

Go to your php.ini file in your windows directory, find "extensions, make sure the path to them is correct (e.g. C:\php4\extensions), and uncomment (remover the ";") in front of the line that says GD. If you want GD2, go to your extensions directory, and rename GD.dll to GD1.dll and GD2.dll to GD.dll.

Good luck.
Bongulim
Forum Newbie
Posts: 21
Joined: Thu Aug 07, 2003 12:50 pm

Post by Bongulim »

I uncommented
this line: ;extension=php_gd2.dll
now everytime I run a PHP script I get a message box says:
Warning
Unknown(): Unable to load dynamic library './php_gd2.dll' - The specified module could not be found.

I don't have any extentions folder, also these DLLs are nowere to be found.
EDIT: Were can I get it? a direct link would be perfect since I'm probably blind.
Bongulim
Forum Newbie
Posts: 21
Joined: Thu Aug 07, 2003 12:50 pm

Post by Bongulim »

Ok I solved it... grabbed the zip download of php, extracted the file from there and it works.
thanks!
Post Reply