One of my customers has the demand: Upload files, can be doc,docx,xls,pdf,txt format, now need to read the contents of these files in PHP, and then calculate the number of words in the file.
1.PHP read DOC-formatted files
PHP does not have a class
Last year, the development of an OA system, need to implement a key document upload and realize online preview, similar to the function of Baidu Library. System Environment: CentOs5.5Tools used: Openoffice 3, pdf2swf tool, Jodconverter, Flexpaper On
From: http://dungenessbin.diandian.com/post/2012-04-20/19373103
Last year, an OA system was developed, which requires one-click Document Upload and online preview, similar to the functions of Baidu Library.
System Environment:
: This article mainly introduces php implementation to convert html to word and doc. if you are interested in PHP tutorials, please refer to it.
$title
=
"PHP generate doc file"
;
$html = 'Php generates doc files-old blog
Php generates doc
Every time a new file is opened in ultraedit, the following message is displayed:
"The file may not be in the DOC format. Do you want to convert the file to the doc format ?"
Every time, I feel very troublesome. It is also annoying.
The following
There was a problem with PHP reading the doc file.
Baidu installed third-party package to achieve
System Hint * * is not a Word document ....
Help
Reply content:
There was a problem with PHP reading the doc file.Baidu installed third-party
How to not generate. to download the DOC file, extract the database content and download it. do not generate the DOC file on the server, you can only directly generate a file in the cache when you click it and download the generated file now. I have
How can I submit the txt and doc files to textarea? How can I submit the txt and doc files to textarea? There are txt and doc files, and then you want to create a button on the page. click this button to select the txt or doc file and read the
Atitit.excel Export functionality Solution PHP java version c#.net Total collection . docx 1 .1. excel save format office2003 office2007/2010 format 1 1 . 2. Class Library Selection java. NET has Apache.poi available,php uses phpexcel1.8.0
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.