GD and GD2 are useful libraries for creating graphics on-the-fly. Discuss your PHP GD and GD2 scripts here.
Moderators: onion2k , General Moderators
lanny
Forum Newbie
Posts: 24 Joined: Thu Apr 06, 2006 10:09 am
Post
by lanny » Fri Apr 21, 2006 10:51 pm
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"
feyd
Neighborhood Spidermoddy
Posts: 31559 Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA
Post
by feyd » Fri Apr 21, 2006 11:27 pm
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 » Sat Apr 22, 2006 3:39 am
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 » Sat Apr 22, 2006 3:57 am
i m using php 4.4.2..may i know what is the steps in order for me to use the gd library function?
onion2k
Jedi Mod
Posts: 5263 Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com
Post
by onion2k » Sat Apr 22, 2006 5:20 am
What did you use to install PHP?
lanny
Forum Newbie
Posts: 24 Joined: Thu Apr 06, 2006 10:09 am
Post
by lanny » Sat Apr 22, 2006 5:29 am
im using abyss web server..
lanny
Forum Newbie
Posts: 24 Joined: Thu Apr 06, 2006 10:09 am
Post
by lanny » Sat Apr 22, 2006 9:00 am
really no other ways to solve this problem?
onion2k
Jedi Mod
Posts: 5263 Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com
Post
by onion2k » Sat Apr 22, 2006 2:42 pm
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.