获取文件内容 [英] Get file contents

查看:80
本文介绍了获取文件内容的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨所有


i我试图在php.my代码中获取文件的内容是

展开 | 选择 | Wrap | 行号

解决方案

应该是什么内容?文件中的字符编码是什么?


这是简单的单词文件,意思是.doc文件。在文件中只有内容是aaaaaaaaaaaaaaaaaaaaaaaa


< blockquote>没有机会用 fread()正确读取.doc(因为包含的专有格式)。您可以使用 COM扩展来阅读Word文件。


hi to all

i am trying to get contents of a file in php.my code is

Expand|Select|Wrap|Line Numbers

解决方案

what is the content supposed to be? what is character encoding in the file?


that is simple word file means .doc file.and in file there is only content is "aaaaaaaaaaaaaaaaaaaaaaa"


there''s no chance properly reading a .doc with fread() (because of the included proprietary formatting). you may use the COM extension to read a Word file.


这篇关于获取文件内容的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆