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
PHP Image Functions and PHP RPMs
Moderator: General Moderators
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
The update manager shouldn't update PHP if you've uninstalled it. If you install it manually from source the RPM system won't be aware that it's installed anyway 
EDIT | You can probably download an RPM that has GD compiled into it.... or maybe you can just download an RPM with the correct extensions.
EDIT | You can probably download an RPM that has GD compiled into it.... or maybe you can just download an RPM with the correct extensions.