Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
April 26, 2005, 4:38 am
rate this thread
Re: how to download an uploaded file from server using php scripting?
header("Content-Disposition: attachment; filename=YOUR_FILE_NAME);
//now write out out the file data
the file should be accessible from the $_FILES array. note that sending
header works only if no output has been sent by the script before.