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
^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">

Archived

This topic is now archived and is closed to further replies.

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