By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,466 Members | 1,138 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,466 IT Pros & Developers. It's quick & easy.

how to download an uploaded file from server using php scripting?

P: n/a
since last ten days i am trying to solve this problem but i am not
getting clue.if any one will be knowing this please help me out of this
problem using this particular mail id.

Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a

sonu wrote:
since last ten days i am trying to solve this problem but i am not
getting clue.if any one will be knowing this please help me out of this problem using this particular mail id.


header("Content-type: YOUR_CONTENT_TYPE");
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.

micha

Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.