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

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sonu

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

    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.

  • micha

    #2
    Re: how to download an uploaded file from server using php scripting?


    sonu wrote:[color=blue]
    > 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[/color]
    this[color=blue]
    > problem using this particular mail id.[/color]

    header("Content-type: YOUR_CONTENT_TY PE");
    header("Content-Disposition: attachment; filename=YOUR_F ILE_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

    Comment

    Working...