Ver Mensaje Individual
  #2 (permalink)  
Antiguo 03/07/2008, 14:49
Avatar de GatorV
GatorV
$this->role('moderador');
 
Fecha de Ingreso: mayo-2006
Ubicación: /home/ams/
Mensajes: 38.567
Antigüedad: 18 años
Puntos: 2135
Respuesta: Guardar htm/html con php

Hola albertcito,

Solo es cuestión que cambies la extensión en filename=$filename para que sea htm:
Código PHP:
<?php
$filename 
"pagina.php";
$size filesize($filename);
$temp explode"." $filename );
$html $temp[0] . ".html";

header("Content-Transfer-Encoding: binary");
header("Content-type: application/force-download");
header("Content-Disposition: attachment; filename=$html");
header("Content-Length: $size");
readfile("$filename");
?>
Saludos.