Ive got an image verification code that doesnt seem to be working. It is returning a broken image so therefore isnt working . If I go directly to the script page i.e veryimage.php it gives me this error.
Undefined variable: sessioncode in /www/verifyimage.php on line 8
Quote:
<?
session_start ();
session_register (sessioncode);
$im = imagecreate (55, 15);
$bg = imagecolorallocate ($im, 255, 255, 255);
$textcolor = imagecolorallocate ($im, 0, 0, 255);
imagecolortransparent ($im, $bg);
imagestring ($im, 5, 0, 0, substr (strtoupper (md5 (Mytext . $sessioncode)), 0, 6), $textcolor);
imagepng ($im);
exit ();
?>
That is what I have, can anybody explain the problem to me?
Thankyou.
Ive got an image verification code that doesnt seem to be working. It is returning a broken image so therefore isnt working . If I go directly to the script page i.e veryimage.php it gives me this error.
Undefined variable: sessioncode in /www/verifyimage.php on line 8
Quote:
<?
session_start ();
session_register (sessioncode);
$im = imagecreate (55, 15);
$bg = imagecolorallocate ($im, 255, 255, 255);
$textcolor = imagecolorallocate ($im, 0, 0, 255);
imagecolortransparent ($im, $bg);
imagestring ($im, 5, 0, 0, substr (strtoupper (md5 (Mytext . $sessioncode)), 0, 6), $textcolor);
imagepng ($im);
exit ();
?>
That is what I have, can anybody explain the problem to me?
Thankyou.
|
|
Search Webmaster Help and Solution
Undefined variable sessioncode in ..Related ItemsQuery failed: connection to localhost:3354 failed (errno=111, msg=Connection refused). |
