Dear expert,
When I tried to change the setting in the config, the following error appeared and the operation of coppermine system was stopped :\'( :
" Warning: Invalid argument supplied for foreach() in /var/www/html/calbee_photo/include/functions.inc.php on line 1590
Fatal error: Call to undefined function: array_key_exists() in /var/www/html/calbee_photo/include/functions.inc.php on line 1686 "
Please help !
Besides, would you mind telling me how to improve the quality of the uploaded photoes (I've changed the quality value of picture to 100) ? Is there any missing steps ?
Thanks a lot !
Regards,
Samuel
What version of php are you running? The function array_key_exists was added in php 4.1.0. Your error message suggests your version of php is earlier than that, and therefore doesn't meet Coppermine minimum requirements.
From the Coppermine documentation:
Quote1. What is required
A web server that supports PHP (the script should work with any version >= 4.1.0)
The quality of the original image isn't changed at all by Coppermine - the setting you're talking about only affects the images Coppermine creates from the original. If the original is crappy, there's nothing Coppermine can do about it. And actually you can pretty much leave that setting alone.
I am using php-4.0.6 . Do I need to reinstall coppermine system after the php upgrade ?
Besides, the original quality of my photoes are good even thought I view them in full-screen. However, the quality degraded after uploaded to coppermine. Is it useful to upgrade from GD1 to GD2 ?
Many thanks !
Do I need to reinstall coppermine system after the php upgrade ? - No
Is it useful to upgrade from GD1 to GD2 ? - Yes
go for a bundled version of php, it already comes with GD2. GD2 supports true color, GD1 only a reduced color scale - this is why your pics look bad when resized with GD1 - they simply lack color depth. This will improve with GD2 a lot (see http://coppermine.sourceforge.net/faq.php#GD1vsGD2 ). You have to understand that you can only install a new version of php if the webserver is your to administer. If you actually are the server admin, you should keep your software up to date in the future, especially you need to apply all fixes and patches that fixes security issues.
Joachim