Cómo implementar el código de verificación en php
lt;?php
//CAPTCHA: tipo de texto como imagen
header("tipo de contenido: imagen/png");
define(' TIPO', 3); //1. Letra 2.
session_start();
//crear lienzo
$img = imagecreatetruecolor(90, 33) );
//$bgcolor = imagecolorallocate($img, rand(200,255), rand(200,255), rand(200,255));
$bgcolor = imagecolorallocate($img, 255, 255, 255);
$textcolor = imagecolorallocate($img, rand(0, 100), rand(0, 100), rand(0, 100)); >//color de relleno al lienzo
imagefill($img, 0, 0, $bgcolor
//crea solo píxeles del punto para el elemento que interfiere//for( $i=0; $ilt; 100; $i){
// $pixelcolor = imagecolorallocate($img, rand(150, 200), rand(150, 200), rand(150, 200) ));
//imagesetpixel($