Force a download WITHOUT readfile??

This is a discussion on Force a download WITHOUT readfile?? within the PHP General forums, part of the PHP Programming Forums category; Is it possible to force a download with using readfile? I'm currently using header("Location: abc.com"); ...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 06-08-2004
Matthew Sims
 
Posts: n/a
Default Force a download WITHOUT readfile??

Is it possible to force a download with using readfile?

I'm currently using header("Location: abc.com"); for redirecting of
all my files to a high-speed file server elsewhere on the internet but
I couldn't get it to force a download.

I can get it to work properly when I use readfile, but that means the
file travels from the high-speed server through my server and to the
user downloading it whereas using the header("Location:"); allows the
file to download from the high-speed server directly to the user.

Pretty much all the comments I've seen state that if I want to force a
download, I have to use readfile.

Is that true?

--Matt
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 12:53 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0