|
|
#1 (permalink) |
|
Pikachu's Flea Collar
Join Date: Sep 2006
Posts: 54
Reputation: 10
|
i am in the middle of making a game and on some pages i want a verifaction so there is no botters but my script isnt working can someone help
<?php // verrification code script. require("safe.php"); if($set_value_button){$button_value = $digit;} $image = imagecreate(120, 30); $white = imagecolorallocate($image, 0x41, 0x41, 0x41); $gray = imagecolorallocate($image, 0x66, 0x66, 0x66); $darkgray = imagecolorallocate($image, 0xFF, 0x99, 0x00); srand((double)microtime()*1000000); for ($i = 0; $i < 30; $i++) { $x1 = rand(0,120); $y1 = rand(0,30); $x2 = rand(0,120); $y2 = rand(0,30); imageline($image, $x1, $y1, $x2, $y2 , $gray); } imagestring($image, 10, rand(15 , 60), rand(7 , 12), $button_value , $darkgray); header('Content-type: image/png'); imagepng($image); imagedestroy($image); ?> the error i get is Fatal error: Call to undefined function imagecreate() in /home/magicmac/public_html/button.php on line 8 thanks |
|
|
|
|
#5 (permalink) |
|
Marios's Mustache Wax
Join Date: Mar 2008
Location: US
Posts: 10
Reputation: 10
|
Make sure you have the necessary dll's. I know for image stuff you'll need php_gd2.dll to be installed in the ext folder of your PHP installation directory.
__________________
[[ http://www.intelligentgear.com/ ]] |
|
|
|
|
#7 (permalink) |
|
Marios's Mustache Wax
Join Date: Mar 2008
Location: US
Posts: 10
Reputation: 10
|
You could ask them to install it? Some are nice like that.
__________________
[[ http://www.intelligentgear.com/ ]] |
|
|
| Thread Tools | |
| Display Modes | |
|
|