Php modify word

Source: Internet
Author: User
Php needs to modify the word. there is a word template with many variables in it.

Use apache + php to read copies of the template and fill the relevant values in the variables in word.

Ask everyone about the environment to be written. Complete example,

Php beginners. thank you.


Reply to discussion (solution)

If you do not mind the charges, we recommend that you use PageOffice, which is a very good third-party Office component. it can not only dynamically fill the word template, but also display and edit word documents on the php webpage. This is the best solution for processing word in PHP. There are many PHP examples. go to the official website.

Export the file as an html file using word, and insert the PHP code in the corresponding location as a template.
After the PHP program executes the actual data replacement operation, it outputs and sets the correct header. the browser can automatically identify it as a Word document.

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.