Jump to content

[SOLVED] How can I install GD library 2


abdfahim

Recommended Posts

What os are you using?

[b]EDIT[/b] I guess that I should have read the post better..lol 

Sorry,

      Anyways, you need to enable the gd2.dll in your php.ini

here is an example.

[code]
;Windows Extensions
;Note that ODBC support is built in, so no dll is needed for it.
;
extension=php_gd2.dll
[/code]

Hope this helps,
Tom
Link to comment
Share on other sites

^beat me to it..lol  You can try this simple image code

[code]
<?php
$list = array("1","2","3","4","5","6","7","8","9","0");

for ($i = 1; $i <= 6; $i++) {
$generated_code .= $list[rand(0,9)];
}

$im = @imagecreate (65, 24)
or die ("Cannot create code - please try later");
$background_color = imagecolorallocate ($im, 70, 70, 70);
$text_color = imagecolorallocate ($im, 255, 255, 255);
imagestring ($im, 5, 5, 5, $generated_code, $text_color);
imagepng ($im);
imagedestroy($im);
?>[/code]

You can create a link to this just like anyother image
<img border="0" src="image.php" width="150" height="40">
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

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

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

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

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.