Ver Mensaje Individual
  #3 (permalink)  
Antiguo 09/10/2009, 04:59
Avatar de dART
dART
 
Fecha de Ingreso: enero-2009
Ubicación: Madrid
Mensajes: 246
Antigüedad: 15 años, 3 meses
Puntos: 7
Respuesta: Boletin PHP > HTML

Hola,

Sí, claro, ahí va el archivo encargado de descargar el boletin,

Código PHP:
    $do$_GET['do'];
    
    
    if(
$do "descargar"){
    
        
ob_start();
        include(
"../boletin_src.php");
        
$contenido ob_get_contents();
        
        
ob_end_clean();
        
        
        
$archivo "../boletin_src.php";
        
$f1=fopen("$archivo","w+");
        
fwrite($f1,"$contenido");
        
header("Content-Type: text/html"); 
        
header("Content-Disposition: attachment; filename=$fl.html");
    }