![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
20/03/2009, 14:26
|
![Avatar de the_web_saint](http://static.forosdelweb.com/customavatars/avatar237271_3.gif) | | | Fecha de Ingreso: mayo-2008 Ubicación: localhost/tierra/america/panama
Mensajes: 1.229
Antigüedad: 16 años, 9 meses Puntos: 43 | |
Respuesta: Fecha en cuerpo de nombre de archivo (exportado)
Código php:
Ver originalfecha_actual= 'Y-m-d'; header("Content-Type: application/vnd.ms-excel"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("content-disposition: attachment;filename=Reportes-al-".$fecha_actual.".xls");
Prueba de esta forma.
Saludos
__________________ ..::The Saint::..
El pesimista se queja del viento; el optimista espera que cambie; el realista ajusta las velas. |