Php & static page static, mainly for two reasons.
First, access to html pages is faster than accessing php pages. When accessing the php page, you need to parse php. When accessing html, the browser can parse it directly. Especially when the PV volume is large and the online traffic volume is large at the same time. You can use the AB .exe tool provided by apacheto perform a simple and effective stress test.
You can perform stress tests on apache/bin/AB .exe. this tool can simulate multiple users and access a page concurrently.
Basic usage
AB .exe? N 10000? C 1000 http: // localhost/test. php
-N indicates the number of requests
-C indicates the number of persons
Second: it is conducive to SEO optimization. SEO search engines are more conducive to searching web crawlers. Currently, most portal websites, Sina and Sohu, should adopt static pages or pseudo-static technologies. To improve search engine crawling and ranking.
Static is conducive to the principle of SEO: Dynamic php or jsp websites generally give corresponding permissions to viewers, while static pages do not have the permission. For web crawlers, the search engine crawls webpage information as a visitor. Therefore, static pages are more conducive to crawling by search engines.
The last static website is more secure. In addition, even if a database error occurs, the user will not be greatly affected.
Copyright Disclaimer: This article is an original article by the blogger and cannot be reproduced without the permission of the blogger.