Jump to content

Recommended Posts

Posted

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

Posted

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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...