在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 |