Results 1 to 3 of 3
  1. #1

    Making a .c or .txt a downloadable file?

    Hello

    When I finish my site i plan to have a
    www.example.com/download folder
    but inside this folder i'm going to have files like .txt and .c etc..
    when i link to these files i want them to pop up as a download instead of showing them as a text file on the internet page

    how could i make this possible?

  2. #2
    Join Date
    May 2004
    Location
    Pflugerville, TX
    Posts
    11,231
    It's impossible to force browser behavior when it comes to file types. You can try to influence it, but ultimately, the visitor/browser has final say in how it handles files. I would archive everything (zip/rar/sit/etc.). That would probably get you closest to what you're wanting to achieve.
    Studio1337___̴ı̴̴̡̡̡ ̡͌l̡̡̡ ̡͌l̡*̡̡ ̴̡ı̴̴̡ ̡̡͡|̲̲̲͡͡͡ ̲▫̲͡ ̲̲̲͡͡π̲̲͡͡ ̲̲͡▫̲̲͡͡ ̲|̡̡̡ ̡ ̴̡ı̴̡̡ ̡͌l̡̡̡̡.__Web Design

  3. #3
    Well its this site I first saw it
    And was wondering how they done it:

    http://www.milw0rm.com/exploits/download/2898

Posting Permissions

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