I was doing some work last night with PHP and went to access the JPEG functions through GD and it blew up with "Fatal error: Call to undefined function ImageCreateFromJpeg()". I loaded up phpinfo() and it showed all image types loaded except JPEG support. So, I spent several hours researching online and trying different things to finally fix the problem. One thing I've noticed is that there are a lot of messages out there with people having problems with PHP interacting with the GD toolkit.
While I managed to fix my problems by recompiling PHP with an external GD kit, it leads me to wonder what causes the internal GD kit to not accept JPEG images. Anybody have any idea? I ran into this problem with version 4.4 and also 5.25 when I upgraded. I even used the --with-jpeg-dir switch when compiling PHP with internal GD and it didn't make a difference.
One other odd thing I ran into when compiling with an external GD kit, was that half the GD files that PHP wanted during compile were in one directory and half of them were in another directory. I ended up kludging by simply copying the contents from one directory to another. Not pretty, but it worked. Could there have been a better way to get around it?
Just curious. Never ran into this before, but it seems to be a common problem...