分离静态和动态内容? [英] Separating static and dynamic contents?

查看:66
本文介绍了分离静态和动态内容?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述




提高PHP应用程序性能的方法之一是从动态内容中分离静态内容,以便前者可以

一次编译到缓存中。


有人能给我一个简单的例子说明这种事情是怎么做的

拨打电话时到MySQL?


谢谢。

解决方案

Gilles Ganault写道:


您好


提高PHP应用程序性能的方法之一是从动态内容中分离出静​​态内容,所以前者可以将
一次编译到缓存中。


有人可以给我一个简单的例子说明这种事情是如何完成的

打电话给MySQL?


谢谢。



Gilles,


显示PHP页面的静态输出并不是那么多开销。我怀疑你甚至会开始注意到差异,直到你运行

每秒数百次点击。


-

==================

删除x来自我的电子邮件地址

Jerry Stuckle

JDS计算机培训公司
js ******* @ attglobal.net

==================


Gary L. Burnore写道:


On Sun,2008年1月6日14:26:32 -0500,Jerry Stuckle

< js ******* @ attglobal.netwrote:


>> Gilles Ganault写道:


>>嗨

提高PHP应用程序性能的方法之一是将静态内容与动态内容分开,所以前者可以编译一次到缓存中。

有人能给我一个简单的例子说明在调用MySQL时这种事情是如何完成的吗? />
谢谢。


Gilles,

从PHP页面显示静态输出并不是那么多开销。我怀疑你甚至会开始注意到差异,直到你运行
每秒数百次点击。



虽然你的网站每秒只能获得一百次点击但是真实的
网站可以获得更多。



我不记得Jerry说他的

网站每秒有多少点击数?

此外,有些人实际上可以使用正确的

单词串起一个句子。


似乎阅读帖子和写作不在你的优点!


Gary L. Burnore写道:


On Sun,2008年1月6日14:26: 32 -0500,Jerry Stuckle

< js ******* @ attglobal.netwrote:


> Gilles Ganault写道:


>>嗨

提高PHP应用程序性能的方法之一是将静态内容与动态内容,以便前者可以编译一次到缓存中。

有人可以给我一个简单的例子来说明这样做是怎么做的
在调用MySQL时?

谢谢。

Gilles,

从PHP页面显示静态输出并不是那么多开销。我怀疑你甚至会开始注意到差异,直到你运行
每秒数百次点击。



虽然你的网站每秒只能获得一百次点击但是真实的
网站可以获得更多。



我自己,加里! ROFLMAO!


我对我的网站说没什么!


-

======= ===========

删除x来自我的电子邮件地址

Jerry Stuckle

JDS计算机培训公司
js ******* @ attglobal.net

==================


Hi

One of the ways to raise performance for PHP apps is to
separate static contents from dynamic contents, so that the former can
be compiled once into cache.

Can someone give me a simple example of how this kind of thing is done
when making calls to MySQL?

Thank you.

解决方案

Gilles Ganault wrote:

Hi

One of the ways to raise performance for PHP apps is to
separate static contents from dynamic contents, so that the former can
be compiled once into cache.

Can someone give me a simple example of how this kind of thing is done
when making calls to MySQL?

Thank you.

Gilles,

Displaying static output from a PHP page isn''t that much overhead. I
doubt you''ll even begin to notice the difference until you''re running
hundreds of hits per second.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================


Gary L. Burnore wrote:

On Sun, 06 Jan 2008 14:26:32 -0500, Jerry Stuckle
<js*******@attglobal.netwrote:

>>Gilles Ganault wrote:

>>Hi

One of the ways to raise performance for PHP apps is to
separate static contents from dynamic contents, so that the former
can be compiled once into cache.

Can someone give me a simple example of how this kind of thing is
done when making calls to MySQL?

Thank you.


Gilles,

Displaying static output from a PHP page isn''t that much overhead. I
doubt you''ll even begin to notice the difference until you''re running
hundreds of hits per second.


While YOUR sites may only get a hundred hits per seconds but REAL
websites can get much more.

I don''t recall Jerry stating anything about how many hits per second his
sites get?

Also, SOME people can actually string a sentence together using the correct
words.

Seems reading posts and writing them are not amongst your strong points!


Gary L. Burnore wrote:

On Sun, 06 Jan 2008 14:26:32 -0500, Jerry Stuckle
<js*******@attglobal.netwrote:

>Gilles Ganault wrote:

>>Hi

One of the ways to raise performance for PHP apps is to
separate static contents from dynamic contents, so that the former can
be compiled once into cache.

Can someone give me a simple example of how this kind of thing is done
when making calls to MySQL?

Thank you.

Gilles,

Displaying static output from a PHP page isn''t that much overhead. I
doubt you''ll even begin to notice the difference until you''re running
hundreds of hits per second.


While YOUR sites may only get a hundred hits per seconds but REAL
websites can get much more.

I OWN YOU, Gary! ROFLMAO!

I said NOTHING about my sites!

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
js*******@attglobal.net
==================


这篇关于分离静态和动态内容?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆