Ver Mensaje Individual
  #3 (permalink)  
Antiguo 03/12/2014, 15:14
Avatar de ArturoGallegos
ArturoGallegos
Moderador
 
Fecha de Ingreso: febrero-2008
Ubicación: Morelia, México
Mensajes: 6.774
Antigüedad: 16 años, 2 meses
Puntos: 1146
Respuesta: guardar archivo .txt con fecha Php

si lo que buscas es que se cree un nuevo archivo cada que se ejecuta usa date() o time() para asignar la fecha... yo haría algo así

Código PHP:
Ver original
  1. fopen("datos/archivo-".date()."_".time().".txt","a+")

@Maganius tanto date() como time() si no agregas parámetros devuelven por default la fecha actual.