Home >Backend Development >PHP Tutorial >PHP reads word documents and displays them through baihui.com API, _PHP tutorial
I encountered a small problem in the project. I want to realize how to read word documents in php and save the content as it is. Show
You can use the API. You can check out the API of baihui.com's writing application
You can use it by applying for an APPKEY, you can see... There are restrictions on the free version
For example, for excel support, you can refer to the appkey I applied for and you can use it...
Save it as a local html file and use it directly after opening
Similar to word
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> <title>测试百会格格远程API</title> </head> <body> <form action="http://gege.baihui.com/remotedoc.im?apikey=079c6475174c7a46351260ed35e54ecd&output=editor" target="_self" enctype="multipart/form-data" method="post"> 上传文件: <input type="file" name="content" site="38"/> <input type="hidden" name="filename" value="my.xls,my.xlsx" /> <input type="hidden" name="saveurl" value="http://vai.com" /> <input type="hidden" name="id" value="21012145" /> <input type="hidden" name="format" value="xlsx" /> <input type="hidden" name="persistence" value="true" /> <input type="submit" value="提交" /> </form> </body> </html>
The above is the entire content of this article, I hope you all like it.