Jump to content

Recommended Posts

I've been hapily using php4 installed on my laptop for quite some time, until I needed to use the gd2 libary. I set up the extension in the ini file and restarted apache. "Cannot find dll"

 

I had this problem for quite some time.. I was able to get gd working by using php5apache2.dll in my httpd.conf file and also adding the line

 

PHPIniDir "C:/php/"

 

The image works great now, 1 problem is that php will no longer parse anything and i just get the source. So... I try and change it back to php4 and leave that phpinidir line, now The php no longer parses and the image does not work. So then I tried to comment out the phpinidir line and keep the php4 dll in, and the php parses correctly but still no image..

 

So at the moment I am lost because its either image or php really...

 

Does anyone have any suggestions please?? It would be really appriciated

 

Thank you very much in advance!!!!

 

SpaM!

Link to comment
https://forums.phpfreaks.com/topic/45082-solved-php-4-5-and-gd/
Share on other sites

I was able to get gd working by using php5apache2.dll in my httpd.conf file and also adding the line

By that you mean you added something like the following line in the httpd.conf, correct?

LoadModule php5_module "C:/php/php5apache2.dll"

 

When you added that line, did you add in an AddType for php?. Such as the following line:

AddType application/x-httpd-php .php

 

Also the PHPIniDir directive in httpd.conf tells PHP where the php.ini is. So if you remove that PHP can't find the php.ini and so  can cause more problems.

 

When you enable the GD2 extension make sure you uncommented the following line in the php.ini:

;extension=php_gd2.dll

and that you set up the extension_dir directive (line 520 in php.ini) too to point to PHP's extension folder.

 

Any changes you make to the httpd.conf or php.ini make sure you save and then restart Apache for the changes to take affect.

Link to comment
https://forums.phpfreaks.com/topic/45082-solved-php-4-5-and-gd/#findComment-219074
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.