GD lib and php GD lib and php
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

GD lib and php

Started by hoover, March 06, 2004, 11:27:11 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

hoover

Hello everyone!
newbie coppermine user here, so far it was simple to install and the interface looks well thought out. When I try to upload photos it tells me my version of php does not support GD. My server runs php 4.3.2 which I thought and read somewhere that 4.3.x had built in gd support? I can upload files of pictures to the album folder and if I click on them directly they load but other than that I  have no thumbnails or anything. I do have shell access but have no idea on how to load GD to it?? Still trying to read up on that before I mess everything up. I also see on my server that they have installed perl modules and perlGD is listed but why does coppermine not recognize it or how do I tell it where to look?

Operating system Linux  
Kernel version 2.4.20
Apache version 1.3.27 (Unix)
PERL version 5.6.1
PHP version 4.3.2
MySQL version 4.0.15-standard


 


Thanks for your help
Cant wait till it works
Gord

jmc

Hi, Hoover!
Whilst PHP does support GD, you probably need to switch it on! You can do this by finding the gd2.dll entry in the "dynamic extensions" section of php.ini and removing the ";" from the start of the line.
I also had to do the same for the extension_dir="C:/PHP/extensions" entry (in fact, I had to create the PHP/extensions folder myself, and place gd2.dll into it, as the version of php I d/l'd didn't include the necessary file!).
Hope this helps!
John Mc
I'm trying hard... at least!

hoover

Hi John,
thanks for the  info, but Im not sure where to find the dynamic extensions section? I did look again at my php info and all looks well, except that there are no modules listed under extra. if changing the php ini file does not work (when i find it :) how do I point coppermine to use perl instead. I see on my server that under installed perl modules , GD is listed there.
As I undertake a complete redesign of my site Im not to worried about security so if you want to take a look at my php info http://www.vanvliet.ca/info.php


Thanks for your help
Gordon

jmc

Hi, Gordon!
At the moment, I'm running my own web-server (Abyss) on WIN98, so I can only speak from personal experience here... not sure how things are set up in the real world, Heh!
My php.ini file is stored in C:/WINDOWS/. The 6th entry in your info panel shows the path to your php.ini file. Once you find and open it, a simple search for GD2 should find the entry you need to edit.
Good luck!
Oh... it also shows (further down) the extension dir to be "./". Ensure that the gd2.dll file is actually stored there!
John Mc
I'm trying hard... at least!

Joachim Müller

there may be several folders on a windows system that have the dll's, and there may be several php.ini's.
Do a search on your server for the files (for "php.ini" and for "gd*.dll"). If you have only one php.ini, edit it with a text editor (notepad is fine!) and look for the correct path to the extensions dir. If you have several php.ini's, you'll have to determine which one is correct first (only one of them will be in use).
Also note, that you can only uncomment either gd1 or gd 2, not both. Also note, that you'll have to restart your webserver for any changes in php.ini to apply.
Do a search on this board, there should be several threads that deal with this issue in detail.

GauGau

Casper

Just for my understanding, does all this dll stuff apply to a linux system, as used by the original poster in this thread.
It has been a long time now since I did my little bit here, and have done no coding or any other such stuff since. I'm back to being a noob here

Joachim Müller

nope: dll's are Windows only!

GauGau

jmc

Well, ya learn something new every day! Windoze only - I'll remember that! I hope...
Joh Mc
I'm trying hard... at least!

hoover

Ok,
so now what do I do? i still have no idea how to use the perl module or implement it. I know its on the server but how do i point coppermine to it? and not sure if Im able to modify php info or not?

thanks

Joachim Müller

create a phpinfo file and post the gd section.

GauGau

hoover

Thanks for everyones help and response. The server happily loaded GD to the server and now it works perfectly.

Im sure ill have more wuestions in the future though.


Thanks again
gordon

gmarik

and it goes .gif's as well? can't get them working ...

hyperion

Not in GD.  If you have the latest PHP, you could modify db_input to allow a GIF with GD and then create a GIF routine that will convert it to a PNG in include/picmgmt.inc.php
"Then, Fletch," that bright creature said to him, and the voice was very kind, "let's begin with level flight . . . ."

-Richard Bach, Jonathan Livingston Seagull

(https://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fwww.mozilla.org%2Fproducts%2Ffirefox%2Fbuttons%2Fgetfirefox_small.png&hash=9f6d645801cbc882a52f0ee76cfeda02625fc537)