Enabling GD v2

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
tristanlee85
Forum Contributor
Posts: 172
Joined: Fri Dec 19, 2003 7:28 am

Enabling GD v2

Post by tristanlee85 »

Ok. I'm trying to run my image gallery with thumbnails, but when I enable the thumbnail option, all I get is red x's on the thumbnails. So, I was reading around and found out that in my php.ini file, I need to remove the ; in front of

Code: Select all

;extension=php_gd2.dll
to enable it. So, I did, restarted apache, and it still doesn't work. I browsed for the file and I found it in the extension directory. Why isn't this being enabled?
Gen-ik
DevNet Resident
Posts: 1059
Joined: Mon Aug 12, 2002 7:08 pm
Location: London. UK.

Post by Gen-ik »

The first things which spring to mind are..

A: You've edited the wrong php.ini file. There's one in the main PHP file directory and then there's one in the Windows directory (if your using windows of course). You should edit the one in the Windows directory.

B: There's something wrong with your PHP code that generates the image thumbnails.
tristanlee85
Forum Contributor
Posts: 172
Joined: Fri Dec 19, 2003 7:28 am

Post by tristanlee85 »

Ahh. I'm using 2000 Pro. I didn't find one in the Windows directory, so I did a search. I found 1 files in c:\nusphere\apache and one is c:\nusphere\apache\php. I have been editing c:\nusphere\apache\php, but it didn't work. So, I tried the other and it works now. Thanks for the help :)
Post Reply