Tema
:
guardar archivo .txt con fecha Php
Ver Mensaje Individual
#
3
(
permalink
)
03/12/2014, 15:14
ArturoGallegos
Moderador
Fecha de Ingreso: febrero-2008
Ubicación: Morelia, México
Mensajes: 6.774
Antigüedad: 17 años
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
fopen
(
"datos/archivo-"
.
date
(
)
.
"_"
.
time
(
)
.
".txt"
,
"a+"
)
@Maganius tanto date() como time() si no agregas parámetros devuelven por default la fecha actual.
ArturoGallegos
Ver Perfil
¡Visita mi Sitio!
Buscar todos los Mensajes de ArturoGallegos