加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 站长学院 > PHP教程 > 正文

在php中读取word文档

发布时间:2020-12-13 17:51:10 所属栏目:PHP教程 来源:网络整理
导读:我现在正在做一个项目,而且我一直在阅读word文档. Word文件内容. This is a test word file in PHP.Thank you. PHP代码. $myFile = "wordfile.docx"; $fh = fopen($myFile,'r'); $theData = fread($fh,1000); fclose($fh); echo $theData; 输出: PK!éQ°?[
我现在正在做一个项目,而且我一直在阅读word文档.

Word文件内容.

This is a test word file in PHP.

Thank you.

PHP代码.

$myFile = "wordfile.docx";
    $fh = fopen($myFile,'r');
    $theData = fread($fh,1000);
    fclose($fh);
    echo $theData;

输出:

PK!éQ°?[Content_Types].xml ¢( ′”MO?@??&t?fˉ|]e`??pP<*‰??v
 ?Yì,_?TiI?(ziòN?÷}fúT`??h?5)?&‘6Sf’2×?c|?"?d¢°R?d?t?Eo
 ?r                        

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读