Home  >  Article  >  Backend Development  >  关于PHP中file_get_contents函数解决方法

关于PHP中file_get_contents函数解决方法

WBOY
WBOYOriginal
2016-06-13 12:10:16949browse

关于PHP中file_get_contents函数
我用file_get_contents读一个txt文件,我发现,只要遇到------解决思路----------------------
后面应该还有其他字符吧组成的html标记所以停止了否则不会停止的你可以试试
------解决思路----------------------
浏览器中查看源码就能看到了。
------解决思路----------------------
在前面加header('Content-type: text/plain'); 应该就可以了

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn