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

关于PHP中file_get_contents函数解决方法

WBOY
Release: 2016-06-13 12:10:16
Original
1013 people have browsed it

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

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template