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,645
    Likes Received:
    87
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    http://blog.pradeep.net.in
    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

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice