请教php静态是这样的吗

WBOY
Release: 2016-06-13 11:32:27
Original
788 people have browsed it

请问php静态是这样的吗?
我是这样理解的:

1.真静态有两种:
 1.1 生成静态html,这个是真正的静态(这个明白)
 1.2还有一种是生成静态页面,php读取这个静态文件,然后echo。
 这样静态主要目的是静态化数据,减少对数据库的查询,url还是动态的php啊,有参数这些。
 这个是内在变了,外在没变(url)

2.伪静态
 这个就是把动态url包装了一下布局,其他什么都没变,该查数据库的还是查,仅仅是让url看起来像个静态页面而已。有点表面功夫的感觉。这个是外在变了,内在没变


不知道是不是这样。

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!