will_jones Posted September 12, 2008 Share Posted September 12, 2008 I am getting the error message .. Fatal error: Call to undefined function: imagecreatefromjpeg() in C:\Apache\htdocs\studentart\sources\db_fns.php on line 290 I am using php 4.4.2 and apache on windows. I have copied the module php_gd2.dll into the modules/php folder of apache. I have un-commented the line ... extension=php_gd2.dll and the line pointing to the modules is... extension_dir = "./modules/php/" .. in my php.ini file. I have also restarted apache but am still getting the original error message. Can anybody help? Link to comment https://forums.phpfreaks.com/topic/123925-imagecreatefromjpg/ Share on other sites More sharing options...
BlueSkyIS Posted September 12, 2008 Share Posted September 12, 2008 i believe you need to recompile PHP with GD support. check phpinfo() to see if GD is compiled in. Link to comment https://forums.phpfreaks.com/topic/123925-imagecreatefromjpg/#findComment-639721 Share on other sites More sharing options...
l0ve2hat3 Posted September 12, 2008 Share Posted September 12, 2008 just download wamp server, it has gd support built in. http://www.wampserver.com/en/ Link to comment https://forums.phpfreaks.com/topic/123925-imagecreatefromjpg/#findComment-639755 Share on other sites More sharing options...
will_jones Posted September 12, 2008 Author Share Posted September 12, 2008 How do i recompile PHP with GD support. My PHPinfo() does not contain any mention of gd support. Link to comment https://forums.phpfreaks.com/topic/123925-imagecreatefromjpg/#findComment-639888 Share on other sites More sharing options...
BlueSkyIS Posted September 12, 2008 Share Posted September 12, 2008 just download wamp server, it has gd support built in. http://www.wampserver.com/en/ I'd take that advice. it's probably what you'll do after you spend many hours trying to re-compile PHP on Windows. Link to comment https://forums.phpfreaks.com/topic/123925-imagecreatefromjpg/#findComment-639890 Share on other sites More sharing options...
will_jones Posted September 12, 2008 Author Share Posted September 12, 2008 Ok thanks for your advice. I installed and configured PHP, Apache and Mysql separately. Do i need to uninstall these programs before i try this wamp or will it sort itself out. I am reluctant to do this because it took a while to get my set up working on my home PC and i don't want to bring it down. I heard if you try and uninstall completely these applications, (mysql especially) it can be difficult. Link to comment https://forums.phpfreaks.com/topic/123925-imagecreatefromjpg/#findComment-639908 Share on other sites More sharing options...
l0ve2hat3 Posted September 12, 2008 Share Posted September 12, 2008 i think you could just disable the mysql and php service and then install wamp... all that time spend configuring and installing php and mysql... while wamp installs everything in a matter of minutes... Link to comment https://forums.phpfreaks.com/topic/123925-imagecreatefromjpg/#findComment-639949 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.