Before you begin losing hair over this, please keep in mind that this script worked under PHP 4.x, as is (with the only change being the upload path to user_images).
And that’s why I suspected that the easiest way to get it working on the current server would be to get an appropriate version of PHP installed and setup properly.
now it’s time to check if GD enabled. looks like no.
you can run this code
<?php phpinfo(); ?>
in the separate file and study output
there GD must be mentioned.
if not - you have to uncomment it in the proper php.ini
hah, forget it
it’s my usual job. any programmer spend most of his work time for the debugging. nothing to lose hair for.
just step-by-step diagnostics.
Version doesn’t matter too much for this. And proper setup is the thing you going to check right now
Well, I think that’s your problem. I don’t see any reference at all to GD it it. There are some differences, I have LAMP PHP 5.2.6, but my phpinfo() shows
gd
GD Support enabled
GD Version bundled (2.0.34 compatible)
FreeType Support enabled
FreeType Linkage with freetype
FreeType Version 2.2.1
GIF Read Support enabled
GIF Create Support enabled
JPG Support enabled
PNG Support enabled
WBMP Support enabled
XBM Support enabled
:d’oh: my bad
That’s because the function doesn’t exist. Still, you should probably leave it that way until you get everything configured correctly and are sure everything is working again.
PHP looks for php.ini in a set order, in several places (and I do have php.ini in each of those locations). When I make a change in php.ini, I copy it to all of those locations and restart my server.
PHP looks for php.ini in a set order, in several places (and I do have php.ini in each of those locations). When I make a change in php.ini, I copy it to all of those locations and restart my server.
This php.ini craze may cause this trouble
php.ini listed in phpinfo() is enough
At first I’d check if any my php.ini changes take effect. Any options. And only then go to particular library
Did you restart server after changes made?
Yes, of course - I restart the server after each change to php.ini. (Is there a way to JUST restart php w/o having to restart the server? - I hate dumping people off of my website each time I reboot).
I have removed earlier installation of PHP and used the Zend package to install PHP 5.2. GD library is installed and I am currently testing the overall installation on the server.