Tema: Download
Ver Mensaje Individual
  #1 (permalink)  
Antiguo 06/10/2009, 07:25
horape
 
Fecha de Ingreso: mayo-2009
Mensajes: 210
Antigüedad: 15 años
Puntos: 0
Download

Código php:
Ver original
  1. header('Content-Description: File Transfer');
  2. header('Content-Type: application/octet-stream');
  3. header('Content-Disposition: attachment; filename='.basename($file));
  4. header('Content-Transfer-Encoding: binary');
  5. header('Expires: 0');
  6. header('Cache-Control: must-revalidate, post-check=0, pre-check=0');
  7. header('Pragma: public');
  8. header('Content-Length: ' . filesize($file));
  9. readfile($file);

En vez de "Save File" me sale seleccionado "Open File" y tengo q cambiarlo a mano.
Qué tengo mal??