![]() |
homecontact ussitemapadvertising | |||
|
|
||||
The Free MMORPG Games- Free MMORPG - P2P Games - Open Beta - Closed Beta - Browser Based - Non-English - Other Free Games - Top 50
|
|||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Link's Dirty Sock
Join Date: Sep 2006
Posts: 46
Reputation: 10
MMOFaces Profile:
None Yet
|
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
|
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
|
You could ask them to install it? Some are nice like that.
__________________
[[ http://www.intelligentgear.com/ ]] |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Copyright © 2004-2007 BlueCastle Media |