1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Upload and display .txt or .doc iles

Discussion in 'PHP' started by Darragh3277, May 26, 2008.

  1. Darragh3277

    Darragh3277 New Member

    Joined:
    May 18, 2008
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    What I would like is to have a website where I can upload a .txt file or a .doc file and have it then displayed. I would preferably like to be able to keep the formatting of the file.

    I have looked up on how to do it but I can't find what im looking for. Could any one point me in the right direction? Any links to articles would be very helpful
     
  2. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,646
    Likes Received:
    86
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    Displaying .txt files is easy, just put the contents of the file inside a <pre></pre> tag, but .doc file is not easy, try googling it!
     

Share This Page