orbitz
06-05-2005, 02:57 AM
Is there anyway to use php to upload word document and the contents of the Word stays the same?
Thanks!
Thanks!
![]() | View Full Version : upload word documents orbitz 06-05-2005, 02:57 AM Is there anyway to use php to upload word document and the contents of the Word stays the same? Thanks! Burhan 06-05-2005, 03:51 AM 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. orbitz 06-05-2005, 03:57 AM 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 :) orbitz 06-05-2005, 04:07 AM what i was actually working on is to get the right word counts for the doc uploaded. -T{H}R- 06-05-2005, 06:46 AM Right........ Burhan 06-05-2005, 07:57 AM 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. orbitz 06-05-2005, 08:28 AM 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 :) |