SSI或者PHP包括()? [英] SSI or PHP Include()?
问题描述
基本上我很快就会推出一个网站,I $通信的对$ pdict了很多东西。对于方案的缘故,可以说,我将有一天的唯一身份1米。这些数据将是静态的,但我需要有包括藏汉
我将只包含另一个HTML页面内一个HTML页面,没有什么动态的(我有我的原因,我不会透露给保持这种简单)
我的问题是,聪明的表现是什么速度更快
<! - #包括虚拟=page.htm - >
或
<?PHP的包括page.htm'; ?>
在性能方面是最快的存储模板其他地方,生成完整的HTML,并根据您的模板改变再生。
如果你真的想PHP与放大器之间的比较; SSI,我猜SSI可能是更快,更重要的是:没有PHP是需要对Web服务器进程/线程RAM轻了很多,从而使您有更多的Apache线程/进程服务的请求
。basically i am launching a site soon and i predict ALOT of traffic. For scenarios sake, lets say i will have 1m uniques a day. The data will be static but i need to have includes aswell
I will only include a html page inside another html page, nothing dynamic (i have my reasons that i wont disclose to keep this simple)
My question is, performance wise what is faster
<!--#include virtual="page.htm" -->
or
<?php include 'page.htm'; ?>
Performance wise fastest is storing the templates elsewhere, generating the full HTML, and regenerate based on alterations in your template.
If you really want a comparison between PHP & SSI, I guess SSI is probably faster, and more important: not having PHP is a lot lighter on RAM needed on the webservers processes/threads, thereby enabling you to have more apache threads/processes to serve requests.
这篇关于SSI或者PHP包括()?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!