Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How do you modify php.ini to install GD Library?

Status
Not open for further replies.

dreammaker888

Programmer
Jul 31, 2007
44
US
All of a sudden, the getimagesize() function stopped working in my php code. Maybe my isp did some upgrade or change to their php server.

I did some research and there is talk about the need to install GD Library in php.ini to get it working.

I don't have any clue how to install GD Libary (which I found the download url).

My isp support php and mySQL. I just upload my code to the public_html directory and it works. Where do you get about modifying php.ini?

Can someone shede some light on this?
 
it would be very unlikely that gd is not enabled on your installation.
create this php script and execute it (point your browser at it).
Code:
phpinfo();

scroll down the results that you get and you should see a section heading called gd. If so, it's working. If not, you will have to ask your host to install it unless you have root access.
 
It might jst be an oversight by tour ISP, as JPaddie suggest to the phpinfo and if it's not there ask them to enable it.
your correct about the php.ini thing. GD (like many things) is an extention to PHP. On windowes the extentions are coded as a .dll and on unix as a .so. The php.ini has these extention names listes and the ones that are not enabled have a ; at the start to coment them out. If you do take out the ; so php can potentialy use the actual .dll or .so needs to findable by php (usualy extention_dir again in php.ini).
The isp should be fully aware of this.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top