spamoom Posted March 31, 2007 Share Posted March 31, 2007 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! Quote Link to comment https://forums.phpfreaks.com/topic/45082-solved-php-4-5-and-gd/ Share on other sites More sharing options...
wildteen88 Posted April 1, 2007 Share Posted April 1, 2007 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. Quote Link to comment https://forums.phpfreaks.com/topic/45082-solved-php-4-5-and-gd/#findComment-219074 Share on other sites More sharing options...
spamoom Posted April 1, 2007 Author Share Posted April 1, 2007 Ok, I managed to get everything working with PHP 4.4.6, for some reason 5 just don't work Quote Link to comment https://forums.phpfreaks.com/topic/45082-solved-php-4-5-and-gd/#findComment-219218 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.