Ver originalheader ('Content-type: application/vnd.ms-excel'); header ("Content-Disposition: attachment;filename=reporte_".date('d-m-y').".xls"); header ('Pragma: no-cache'); header ('Expires: 0');