I'm hoping someone might help me with a PHP/MySQL problem I'm experiencing.
I'm running a small classified ad script at www.freelancemusicians.org/classifieds
The script is called ZClassified and produces the following errors when a user attempts to upload images for an ad:
Warning: ImageCreateFromJpeg: No JPEG support in this PHP build in /home/sites/site105/web/classifieds/common.php on line 166
Warning: Supplied argument is not a valid Image resource in /home/sites/site105/web/classifieds/common.php on line 167
Warning: Supplied argument is not a valid Image resource in /home/sites/site105/web/classifieds/common.php on line 168
Warning: Supplied argument is not a valid Image resource in /home/sites/site105/web/classifieds/common.php on line 170
Warning: ImageJpeg: No JPG support in this PHP build in /home/sites/site105/web/classifieds/common.php on line 171
==============================================
Here is the code pertaining to the above noted errors:
LINE 166: $im = ImageCreateFromJPEG( $scrFile );
LINE 167: $srcW = ImageSX( $im );
LINE 168: $srcH = ImageSY( $im );
LINE 169: $ni = ImageCreate( $dstW, $dstH );
LINE 170: ImageCopyResized( $ni, $im, 0, 0, 0, 0, $dstW, $dstH, $srcW, $srcH );
LINE 171: ImageJPEG( $ni, $dstFile );
==============================================
My web host has suggested that I change all references of "site 105" to www.freelancemusicians.org but there is no parameter in any script set-up/configuration file to do this. The results /home/sites/site105/web/classifieds/common.php seems to be generated or collected by the script automatically as it runs and therefore I cannot change it.
Might someone please suggest how I might fix this problem and avoid the above mentioned errors? Everything is working in the script with the exception of the image upload problem.
THANK-YOU