无数据库留言本的有关问题

WBOY
Release: 2016-06-13 13:32:56
Original
808 people have browsed it

无数据库留言本的问题
怎么读取每个用户的留言信息。用fread读取只能全部读取,而不能分开读取用户的留言再在网页上分别显示,
看到别人写的留言本不太懂是怎么读出来的。希望大家指点迷境。。

------解决方案--------------------
可以用XML文档的格式来代替数据库,这样也好操作
------解决方案--------------------
可将留言保存定长。【费空间,能大幅提高文件定位时间】

这样子,为每个用户,都用文件记录写入的行的位置

fseek可直接定位要读取的数据位置

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!