Page 1 of 1

imagecreate() problem

Posted: Fri Apr 21, 2006 10:51 pm
by lanny
may i know how to use the imagecreate() in php because it shows error message when i included it in my code.

the error message as below displayed on my web page:
"Fatal error: Call to undefined function: imagecreate() in C:\Web Docs\Assignment\Designshirt.php on line 221"

Posted: Fri Apr 21, 2006 11:27 pm
by feyd
The extension isn't loaded. Uncomment (remove the leading semicolon) the php_gd line in the extension section of your php.ini.

Posted: Sat Apr 22, 2006 3:39 am
by lanny
change the path in this file : php_gd2.dll?

Posted: Sat Apr 22, 2006 3:57 am
by lanny
i m using php 4.4.2..may i know what is the steps in order for me to use the gd library function?

Posted: Sat Apr 22, 2006 5:20 am
by onion2k
What did you use to install PHP?

Posted: Sat Apr 22, 2006 5:29 am
by lanny
im using abyss web server..

Posted: Sat Apr 22, 2006 8:06 am
by onion2k
So you followed the instructions on this page: http://www.aprelium.com/abyssws/php.html

Not sure why it's not working then .. that would install PHP with GD enabled.

Posted: Sat Apr 22, 2006 9:00 am
by lanny
really no other ways to solve this problem?

Posted: Sat Apr 22, 2006 2:42 pm
by onion2k
If you've enabled it in php.ini, and the php_ggd2.dll file is in your extensions directory as it should be, then there's no good reason why it shouldn't be working.