This is the verification code i put in my webpage
<?php if ($use_verification_image): ?>
<label for="commentform_verification">Image verification:</label><br />
<input name="verification" type="text" id="commentform_verification" class="comment_form_text_box"/>
<br />
<img src="<?php echo $commentsystemfolder; ?>comments_verificationimage.php?r=<?php echo md5(uniqid(time())); ?>" alt="image verification" name="commentform_verificationimage" width="70" height="10" id="commentform_verificationimage"/><br /><br />
<?php endif; ?>
the above code is coming from this verification file:
<?php
header('Content-type: image/jpeg');
$randomstring = substr(md5(uniqid(time())),0,6);
$width = 100;
$height = 20;
$canvas = imagecreatetruecolor($width, $height);
setcookie('tntcommentvf', md5(md5($randomstring) . 'a39nx'), null, '/');
imageantialias($canvas, true);
imagefill($canvas, 0, 0, 0xFFFFFF);
for ($i = 0; $i < 100; $i++){
$x = rand(0,$width-1);
$y = rand(0,$height-1);
imagesetpixel($canvas, $x, $y, 0x000000);
}
$x = 4;
for ($c = 0; $c < strlen($randomstring); $c++){
$x += 8 + rand(0,5);
$y = $height/2 - rand(0,2) + rand(0,2) - 8;
imagestring($canvas, 3, $x, $y, substr($randomstring,$c,1), 0x000000);
}
imagejpeg($canvas);
imagedestroy($canvas);
?>
But somehow the image is not showing up.