1.2: static pages really static

0x00

1. static pages of classified

From the formal division

True Static: put a dynamic page (the operation of the database, or the end of the PHP) to generate a static page .html file

Pseudo-static: the surface is a static page, the actual operation of the dynamic page. For example: http: //baidu.com/nes.html actually visit is: http: //baidu.com/nes.php type = sprot & id = 23??

Mainly using pseudo-static anti-seo SQL Injection

Who range from:

All static:

Local static: such as user login (using ajkx)

 

0x01 implementation

True Static: The main ob using caching technology, ob cache in response to the theme cache

Pseudo-static: the use of rewriting mechanism (rewrite) web server

 

0x02 ob Cache

ob is output buffering: output caching in the process of requesting php, we actually go through three cache, the cache program, ob cache, browser cache

Open OB cache

1. php.ini configuration file output buffring = 4096

2. Direct program ob_start ():

 

Guess you like

Origin www.cnblogs.com/sssbug/p/11368610.html