🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: chile.comp.programacion
Article #2296

Re: Manito para bajar archivos...

#2296
From: Mauricio Gómez
Date: Wed, 18 Jan 2006 20:42
33 lines
2073 bytes
No se si te sirva... se discute eso frecuentemente en foros de php:

peavey at pixelpickers dot com
20-Oct-2005 10:38
A mime-type-independent forced download can also be conducted by using:

<?
(...)
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // some day in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
header("Content-type: application/x-download");
header("Content-Disposition: attachment; filename={$new_name}");
header("Content-Transfer-Encoding: binary");
?>



rro


Pintamono escribi�:
> Cada vez que se pincha un documento (word, excel, ppt o pdf) en el IE,
> se abre en el mismo navegador.
> Lo que necesito hacer (en PHP) es obligar a que aparezca la opcion de
> descargar, esto ya que un documento de 100k se demora 18 seg en abrirse
> y apenas 3 en bajarse...
> tengo:
> <a href="direccion_del_documento.ext">clic</a>
> entonces al pinchar "clic" en IE abre el documento dentro del mismo...
> 
> Se entiende??
> Gracias...
> 
Technical Details
Message-ID: <dqm545$cf4$1@news.nivel5.cl>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news.glorb.com!news.kjsl.com!news.nivel5.cl!not-for-mail
References: <1137609255.496161.287330@g43g2000cwa.googlegroups.com>

Show Full Headers
Complete Article Headers
X-Google-Thread: 1593cb,3a9f8a7f6cecd175
X-Google-Attributes: gid1593cb,public
X-Google-Language: SPANISH,ASCII
Path: arc1-ca.pugleaf.net!g2news1.google.com!news1.google.com!news4.google.com!news.glorb.com!news.kjsl.com!news.nivel5.cl!not-for-mail
From: Mauricio Gómez <pregunte@sileinteresa.com>
Newsgroups: chile.comp.programacion
Subject: Re: Manito para bajar archivos...
Date: Wed, 18 Jan 2006 16:42:49 -0400
Organization: Varios
Lines: 33
Message-ID: <dqm545$cf4$1@news.nivel5.cl>
References: <1137609255.496161.287330@g43g2000cwa.googlegroups.com>
NNTP-Posting-Host: pc-23-73-104-200.cm.vtr.net
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit
X-Trace: news.nivel5.cl 1137612741 12772 200.104.73.23 (18 Jan 2006 19:32:21 GMT)
X-Complaints-To: news@news.nivel5.cl
NNTP-Posting-Date: Wed, 18 Jan 2006 19:32:21 +0000 (UTC)
User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)
X-Accept-Language: es-es, es
In-Reply-To: <1137609255.496161.287330@g43g2000cwa.googlegroups.com>