Results 1 to 7 of 7
  1. #1
    Join Date
    Mar 2004
    Posts
    1,301

    upload word documents

    Is there anyway to use php to upload word document and the contents of the Word stays the same?

    Thanks!

  2. #2
    Join Date
    Jul 2003
    Location
    Kuwait
    Posts
    5,099
    What? Just upload it as a regular file. Just like you would any image file.

    Do you want to upload the file, or have someone copy-paste the contents from a file and then upload that?

    What you asked doesn't make any sense, because PHP doesn't alter the contents of the the files that are uploaded, unless you specifically write that code.
    In order to understand recursion, one must first understand recursion.
    If you feel like it, you can read my blog
    Signal > Noise

  3. #3
    Join Date
    Mar 2004
    Posts
    1,301
    uh, my bad. it was my fault. After I had uploaded a word document, I viewed the file via FTP Pro software - and that showed something like a binary file with contents like "ࡱ yyyyyy" so, I thought the content was changed

  4. #4
    Join Date
    Mar 2004
    Posts
    1,301
    what i was actually working on is to get the right word counts for the doc uploaded.

  5. #5
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    876
    Right........

  6. #6
    Join Date
    Jul 2003
    Location
    Kuwait
    Posts
    5,099
    You will need to use a third party tool like abiword to convert the wod file to something that PHP can read, then count the words.
    In order to understand recursion, one must first understand recursion.
    If you feel like it, you can read my blog
    Signal > Noise

  7. #7
    Join Date
    Mar 2004
    Posts
    1,301
    i see. I ran into this website - they have a php application which converts doc to text or doc.

    http://www.phpwordlib.motion-bg.com/

    hmm... if I am stuck on this, I purchase it - it is nice to figure out by oneself though

Posting Permissions

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