PDA

View Full Version : Need help with another problem


Apocalypse
02-15-2006, 10:39 PM
Fatal error: Unknown function: imagetypes() in /home/u4/curlynerd/poweroftheprophecy.com/html/photoplog/functions.php on line 44

Help please? :)

Thanks

Morgan
02-15-2006, 11:19 PM
Check that you have the GD library installed correctly: http://www.boutell.com/gd/

In EasyPHP, go to configuration, PHP extensions, activate php_gd2, and then restart.

Apocalypse
02-15-2006, 11:37 PM
How do I install GD? It's not installed.

Morgan
02-15-2006, 11:55 PM
Chances are that you already have GD, if you are using PHP 4.3 or above, so you'd just need to enable it. On a *nix system, configure PHP --with-gd and on a Win system, set extension to php_gd2.dll in the php.ini file.

More information can be found at http://www.boutell.com/gd/faq.html (look for the "How do I get GD to work with PHP" FAQ) and at http://www.php.net/manual/en/ref.image.php (look for the Installation section).

Apocalypse
02-16-2006, 12:00 AM
I don't understand almost anything you just said. Lol. I looked through my database and php_gd2.dll isn't there. I don't think. I'm not quite sure, my webhost has this weird database thing. :( Sorry

Morgan
02-16-2006, 12:05 AM
'Tis okay, it wouldn't be in your database. Given that you are hosted, you probably aren't allowed to make the necessary modifications to enable GD, so just shoot an email to your host asking them to enable GD.

Apocalypse
02-16-2006, 12:10 AM
Ok. Thank you.

But if it isn't installed, how would I go about installing it?

Apocalypse
02-16-2006, 12:15 AM
Got it, nevermind :)

Morgan
02-16-2006, 12:17 AM
On *nix: http://www.php.net/manual/en/ref.image.php#43708
On Win: http://www.php.net/manual/en/ref.image.php#41481

oradii
02-22-2006, 02:24 PM
Content visible to registered users only.

Morgan,

I've read through your instructions, as well as the stuff on boutell.com and php.net, my problem is that whenever php_gd2.dll is enabled, my site no longer works at all, almost like php gets broken.

as soon as I put a ; in front of extension=php_gd2.dll, the site works again no problems.

Any idea why this would be happening? I do not think it has anything to do with your hack, but I can't seem to find the answer anywhere else.

oradii
02-22-2006, 02:45 PM
i found the problem. apparently my php_gd2.dll was out of date. I took the php_gd2.dll file from the PHP 4.4.2 zip package from www.php.net.

copied over just that file and everything is working.