PHP Image Functions and PHP RPMs
Posted: Fri Aug 04, 2006 6:41 am
I'm running PHP with Apache on Fedora 5, all installed from the Fedora RPMs
After getting some basic PHP pages working, I am now trying to the image functions to manipulate JPEGs.
However I'm getting the error "Call to undefined function imagecreatefromjpg".
I am assuming that the Fedora PHP RPM does not have the required --with-gd[=DIR] compile flag set, hence the error message that the PHP funciton is not available.
Could someone please confirm that:
1. My problem is the compiled options of the Fedora RPM.
2. To get this to work I am going to have to compile PHP and install from the source.
3. Do I need to do anything to stop the Fedora update system from automatically overwriting my compiled PHP installation when a new RPM becomes available?
Many thanks
Bryan
After getting some basic PHP pages working, I am now trying to the image functions to manipulate JPEGs.
However I'm getting the error "Call to undefined function imagecreatefromjpg".
I am assuming that the Fedora PHP RPM does not have the required --with-gd[=DIR] compile flag set, hence the error message that the PHP funciton is not available.
Could someone please confirm that:
1. My problem is the compiled options of the Fedora RPM.
2. To get this to work I am going to have to compile PHP and install from the source.
3. Do I need to do anything to stop the Fedora update system from automatically overwriting my compiled PHP installation when a new RPM becomes available?
Many thanks
Bryan