noobstar Posted February 7, 2007 Share Posted February 7, 2007 Hi everyone I have been having some weird problem with imagecreate everytime i use it i get this error shown below: Fatal error: Call to undefined function imagecreate() Here is my script <?php if($_POST['verify'] == 'verify') { if($_POST['seccode'] == $_POST['code']) { echo "Congratz it worked!"; } else { echo "It didnt work"; } } $string = md5(rand(0,9999)); $new_string = substr($string, 17, 5); $image = imagecreate(50, 50); $image = $new_string; echo $image; echo "<br/><br/>Please input the number seen above: <form name=verify method=post action=verify.php style=display:inline><input type=text name=code value=".$new_string."><input type=text name=seccode> <input type=submit value=verify name=verify></form>"; ?> I've tried 5 or 6 image verification scripts whereby i copied pasted them and they work but they get stuk on the same problem (imagecreate()) Thank you very much for any replies Link to comment https://forums.phpfreaks.com/topic/37411-imagecreate-issue/ Share on other sites More sharing options...
fert Posted February 7, 2007 Share Posted February 7, 2007 you don't have the GD library installed Link to comment https://forums.phpfreaks.com/topic/37411-imagecreate-issue/#findComment-178825 Share on other sites More sharing options...
noobstar Posted February 7, 2007 Author Share Posted February 7, 2007 Ahh ok thx for the reply Link to comment https://forums.phpfreaks.com/topic/37411-imagecreate-issue/#findComment-178828 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.