fgets有关问题

WBOY
Release: 2016-06-13 13:48:29
Original
994 people have browsed it

fgets问题
我用fgets($file)读取一个html文件,可是为什么每遇到
------解决方案--------------------
应该不可能。
------解决方案--------------------
fgetss ― 从文件指针中读取一行并过滤掉 HTML 标记
你是把

之类的HTML标记全去掉了
------解决方案--------------------
你用的就是fgetss,去掉html标记的,换成fgets就ok了,你可以用ftell($file)查看你文件到底是读到哪了。
------解决方案--------------------
\n 停的,或者文件尾
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
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!