Tema: php + txt
Ver Mensaje Individual
  #12 (permalink)  
Antiguo 17/01/2009, 00:31
emmotic
 
Fecha de Ingreso: enero-2009
Mensajes: 7
Antigüedad: 15 años, 3 meses
Puntos: 0
Respuesta: php + txt

Código final:

Código PHP:
<?php
if (! is_file($_REQUEST['Nick'] . ".txt"))
{
$ar=fopen($_REQUEST['Nick'] . ".txt","a+");
{
  
$datos "$_REQUEST[Nick]|$_REQUEST[Password]|$_REQUEST[Email]";
  
fwrite($ar$datos);
  echo 
"Los datos se cargaron correctamente.";}
}
else {
  
header('Location: /pagina.html');
}
  
?>
Funciona y todo!
Muchísimas gracias pateketrueke