Ver Mensaje Individual
  #2 (permalink)  
Antiguo 12/09/2005, 05:06
Avatar de DINASEN
DINASEN
 
Fecha de Ingreso: marzo-2003
Mensajes: 997
Antigüedad: 21 años, 1 mes
Puntos: 1
tendrias que hacerlo con la libreria gd por ejemplo aqui te paso un ejemplo simple cogido del nuke :D :

$sitekey = "SdFk*fa28367-dm56w69.3a2fDS+e9";
$random_num = mt_rand(0, 10);
$datekey = date("F j");
$rcode = hexdec(md5($_SERVER[HTTP_USER_AGENT] . $sitekey . $random_num . $datekey));
$code = substr($rcode, 2, 6);
$image = ImageCreateFromJPEG("code_bg.jpg");
$text_color = ImageColorAllocate($image, 0, 0, 0);//color rgb
Header("Content-type: image/jpeg");
ImageString ($image, 5, 12, 2, 'kisdhnlksdnsdk', $text_color);
ImageJPEG($image, '', 75);
ImageDestroy($image);
die();

Un Saluod