imagecreate() problem

GD and GD2 are useful libraries for creating graphics on-the-fly. Discuss your PHP GD and GD2 scripts here.

Moderators: onion2k, General Moderators

Post Reply
lanny
Forum Newbie
Posts: 24
Joined: Thu Apr 06, 2006 10:09 am

imagecreate() problem

Post 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"
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

The extension isn't loaded. Uncomment (remove the leading semicolon) the php_gd line in the extension section of your php.ini.
lanny
Forum Newbie
Posts: 24
Joined: Thu Apr 06, 2006 10:09 am

Post by lanny »

change the path in this file : php_gd2.dll?
lanny
Forum Newbie
Posts: 24
Joined: Thu Apr 06, 2006 10:09 am

Post 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?
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post by onion2k »

What did you use to install PHP?
lanny
Forum Newbie
Posts: 24
Joined: Thu Apr 06, 2006 10:09 am

Post by lanny »

im using abyss web server..
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post 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.
lanny
Forum Newbie
Posts: 24
Joined: Thu Apr 06, 2006 10:09 am

Post by lanny »

really no other ways to solve this problem?
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Post 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.
Post Reply