On Tue, 2003-03-18 at 23:45, Ruo Zhang wrote:
> I use the following headers to force open a download dialog box. However, my 
> download files are located in other directories/subdirectories. How can I specify a 
> download path in the header? The 'Content-Location' header does not work in this 
> case. Can someone please help?
> 
> header("Content-type: application/octet-stream");
> header("Content-Length: $filelength");
> header("Content-Disposition: attachment; filename=$fname;");
> 

Why don't you do:

readfile($filename);

straight after your header statements. That will read in the file and
pass it straight through to the browser.

Regards,

AW

-- 
Abdul-Wahid Paterson

Lintrix Networking & Communications ltd.
Web: http://www.lintrix.net/
Tel: +44 7801 070621
Email/Jabber: [EMAIL PROTECTED]
--------------------------------------------------------------------
Web-Hosting  |  Development  |  Security  |  Consultancy  |  Domains
--------------------------------------------------------------------

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to