Ver Mensaje Individual
  #1 (permalink)  
Antiguo 15/03/2014, 12:02
randy69
 
Fecha de Ingreso: marzo-2014
Ubicación: cararias/lanzarote
Mensajes: 165
Antigüedad: 10 años, 1 mes
Puntos: 0
Pregunta Este codigo me da error

La clae creada se imprime en pantalla pero me da el siguente error
Aviso : Undefined variable: clavekey en D: \ XAMPP \ htdocs \ git \ include \ user_temp.php en la línea 6
JEhXeI8Co8mmNIYKmOkTkiGpntflMd2kdPxeUdJi
Código PHP:
$key 'abcdefghijklmnopkestuwxyzABCDEFGHIJKLMNOPQRSTUWXYZ123456789';
$clave 40;
$max strlen($key)-1;
for (
$i=0$i $clave$i++) {
    
$clavekey.=substr($keyrand(0,$max),1);
}
echo 
$clavekey