Jump to content

imagecreate issue


noobstar

Recommended Posts

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

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.