My environment: Apache 2.0.55, PHP 5.1.2 Windows XP
I've changed my php.ini, removed the ; before extension=php_gd2.dll. Also php_gd2.dll can be found in php/ext/ dir.
I've checked the phpinfo() output. Only one line about gd, "Configure Command cscript /nologo configure.js "--enable-snapshot-build" "--with-gd=shared"".
What's the error cause?
Thanks in advance!
Fatal error: Call to undefined function imagecreatefromjpeg(
Moderator: General Moderators
- Christopher
- Site Administrator
- Posts: 13596
- Joined: Wed Aug 25, 2004 7:54 pm
- Location: New York, NY, US
Fix it!
Many thanks!
You're right. I modified the extension_dir in php.ini and it works.
Some time ago, I uncommented line "extension=php_mysql.dll", then mysql support is ok. Since mysql extension can work without correct extension_dir setting, why gd cannot? It's a bit confusing. That's also why I didn't check the extension_dir setting.
You're right. I modified the extension_dir in php.ini and it works.
Some time ago, I uncommented line "extension=php_mysql.dll", then mysql support is ok. Since mysql extension can work without correct extension_dir setting, why gd cannot? It's a bit confusing. That's also why I didn't check the extension_dir setting.