求php静态列表页分页原理,该如何处理

WBOY
Release: 2016-06-13 10:29:26
Original
815 people have browsed it

求php静态列表页分页原理
当我们发一篇文章时,会同时生成一个列表页,列表页的页码是右总条数除以每页显示的个数确定的,http://www.admin5.com/browse/5/list_1.shtml 如a5的 最近发布的文章会在list_1中,以前发布的会依次排在后面,现在的问题来了,你以前发布时的文章可能会砸list_1中列出来,后来发布的也在list_1中列出来这样后发布的会把以前发布的给覆盖掉,但是现在的情况是他会自定递增的生成列表页,由于每次发布都生成列表页,如果文章少还好,如果文章多了,达到几百万条,每次发布一篇文章都生成几十万页(假设为1页显示10篇文章),服务器肯定受不了,求a5这样列表页生成的原理(如何能递增又不覆盖以前的列表页)

------解决方案--------------------
其实就是伪静态

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!