Ver Mensaje Individual
  #6 (permalink)  
Antiguo 29/12/2009, 08:56
Avatar de urgido
urgido
 
Fecha de Ingreso: febrero-2005
Mensajes: 2.351
Antigüedad: 20 años
Puntos: 25
Respuesta: salida php en fichero .xml

Cita:
Iniciado por TKZeXe Ver Mensaje
Con esto forzarias la descarga, no necesitas liarte con fopen u otras funciones.

saludos

Código PHP:
Ver original
  1. header("Content-Type: application/xml");
  2. header("Expires: 0");
  3. header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
  4. header("content-disposition: attachment;filename=xmlexport.xml");
  5.  
  6.  
  7.  
  8. echo '<file>ARCHIVO XML</file>';
lo que dice @Marvin, esto envia al browser como descarga, igual y le puede ser útil...
__________________
Hospedaje Web al mejor costo!