Results 1 to 5 of 5

Thread: download a file

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2001
    Location
    USA
    Posts
    1,026

    download a file

    I have a database that stores file locations and the like...

    I need for PHP to start the download of a file... is this possible.

    I would just put the filename in a link, but have to keep track of who downloads what... it's a big mess.

    Thanks,

    squirrelly1
    Now happily married and still crankin' away at the keyboard. Life is grand for a coder, no?

  2. #2
    Frenzied Member sciguyryan's Avatar
    Join Date
    Sep 2003
    Location
    Wales
    Posts
    1,763

    Re: download a file

    Have a look here.


    Cheers,

    Ryanj
    My Blog.

    Ryan Jones.

  3. #3

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2001
    Location
    USA
    Posts
    1,026

    Re: download a file

    Every script I have tried for downloading a file does not seem to work... It will download the file, but then it prints the contents to the screen... even tarballs!

    squirrelly1
    Now happily married and still crankin' away at the keyboard. Life is grand for a coder, no?

  4. #4
    Frenzied Member sciguyryan's Avatar
    Join Date
    Sep 2003
    Location
    Wales
    Posts
    1,763

    Re: download a file

    How odd, did you set the mime type?


    Cheers,

    RyanJ
    My Blog.

    Ryan Jones.

  5. #5

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2001
    Location
    USA
    Posts
    1,026

    Re: download a file

    no... i'm not even sure how to do that...

    I just used the code that was in your last link... it did the same thing.

    Squirrelly1
    Now happily married and still crankin' away at the keyboard. Life is grand for a coder, no?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width