开发者

Do .php files without any PHP in them get passed to the interpreter?

On a standard LAMP sta开发者_JS百科ck, do .php files without any PHP in them get passed to the PHP interpreter?

In other words, is there a performance/processing loss for creating a .php file without actually including any PHP in it, versus just making it a .html file?


On a standard LAMP stack, do .php files without any PHP in them get passed to the PHP interpreter?

Yup - after all, no other component except for the PHP parser is fit to decide whether the file contains PHP!

In other words, is there a performance/processing loss for creating a .php file without actually including any PHP in it, versus just making it a .html file?

Potentially, yes, although it will be minimal in most cases unless you have really, really loads of traffic.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜