gd graphic library

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
dujed
Forum Newbie
Posts: 9
Joined: Thu Mar 30, 2006 6:49 am

gd graphic library

Post by dujed »

How to install gd graphic library for PHP 4.4.2 on windows xp!!My photo album doesn't work!I have
Fatal error: Call to undefined function: imagecreatefromjpeg() in c:\htdocs\handyman\photo\index.php

Thanks!
User avatar
Hurreman
Forum Commoner
Posts: 61
Joined: Sat Apr 29, 2006 8:42 am

Post by Hurreman »

Have you checked your php.ini to see if it's loading?
Open if up and search for GD, and you should end up at the correct row. Then, if it's commented, remove the ";" in front of extension=php_gd2.dll.
It could also be php_gd.dll, I can't quite remember what version is shipped with 4.4.2.

Change

php.ini

Code: Select all

;extension=php_gd2.dll
To

php.ini

Code: Select all

extension=php_gd2.dll
And restart apache.
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

uncomment the php_gd2.dll line in your php.ini, restart the web server.
Post Reply