planetphillip Posted August 18, 2004 Posted August 18, 2004 Hi, I'm trying to run a couple of scripts that require GD library 2.0+. The scripts don't work properly and at the moment the only thing in common with each other is the GD requirement. I know that TCH has these scripts installed but do I need to do anything to activate them? TIA Phillip Quote
TCH-Don Posted August 18, 2004 Posted August 18, 2004 The current version is GD Version bundled (2.0.23 compatible) You should not need to do anything. Your scripts should find the library with out any help. you can try a simple GD script to see if it is working upload this and point your browser to it firstgdscript.php ><?php header ("Content-type: image/png"); $img_handle = ImageCreate (230, 20) or die ("Cannot Create image"); $back_color = ImageColorAllocate ($img_handle, 0, 10, 10); $txt_color = ImageColorAllocate ($img_handle, 233, 114, 191); ImageString ($img_handle, 31, 5, 5, "My first Program with GD", $txt_color); ImagePng ($img_handle); ?> this is from http://www.phpfreaks.com/tutorials/105/1.php Quote
planetphillip Posted August 18, 2004 Author Posted August 18, 2004 Thanks Don, The script worked. I will keep looking for my problems. Thanks again. Phillip Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.