Flustered Posted August 24, 2008 Share Posted August 24, 2008 I was setting up a web server on my home pc with XP. I installed Apache 2.2 and PHP 5.2.6 and got the website running, but can't figure out how to get the GD 2.0 function working that is needed for part of the website. Can someone walk me thru what is needed to get it to work? From what I read, its supposed to be part of PHP 5.2.6. Thanks all!! Quote Link to comment Share on other sites More sharing options...
wildteen88 Posted August 24, 2008 Share Posted August 24, 2008 It does come with PHP yes. However in order use GD you must enable the extension, you do this by finding the following line within the php.ini ;extension=php_gd2.dll remove the semi-colon ( ; ) at the beginning of the line and save the php.ini and then restart Apache. NOTE: Make sure the extension_dir directive is setup correctly, this directive should be set to PHP's extension folder. Example: extension_dir = "C:/php/ext" Quote Link to comment Share on other sites More sharing options...
Flustered Posted August 24, 2008 Author Share Posted August 24, 2008 I did as above, but still no luck on the GD2.0 working. I know the site files are good as it worked on a server that was dropped. On the install, it said extension_dir = "C:\php\ext", and you suggested extension_dir = "C:/php/ext" Neither way made any difference. Any more ideas?? Thanks for the help! Quote Link to comment Share on other sites More sharing options...
Flustered Posted August 25, 2008 Author Share Posted August 25, 2008 I accidently figured it out, there also was a error at the top of each php page. There was a "function dl" text showing at the top of each page. I tracked it to a line of dl('bgd.dll'); in a config file. I blocked it out (//) and now it all works. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.