 
			
				10/09/2008, 22:11
			
			
			     |  
        |     |    |    Fecha de Ingreso: septiembre-2008  Ubicación: Pedernales, Michoacan  
						Mensajes: 82
					  Antigüedad: 17 años, 1 mes Puntos: 2     |        |  
  |      Respuesta: Crear JPG con texto raro         Cita:  
					Iniciado por farra     Código PHP:     <?php
 session_start();
 function randomText($length) {
     $pattern = "123456789abcdefghijklmnopqrstuvwxyz";
     for($i=0;$i<$length;$i++) {
       $key .= $pattern{rand(0,34)};
     }
     return strtolower($key);
 }
   $_SESSION['tmptxt'] = randomText(8);
 $captcha = imagecreatefromgif("bgcaptcha.gif");
 $colText = imagecolorallocate($captcha, 0, 0, 0);
 imagestring($captcha, 5, 16, 7, $_SESSION['tmptxt'], $colText);
   header("Content-type: image/gif");
 imagegif($captcha);
 ?>            no se mucho de esto pero buneo 
no jalaria el codigo anterior con la funcion base64_decode()???            |