开发者

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

开发者 https://www.devze.com 2023-01-21 07:43 出处:网络
On a standard LAMP sta开发者_JS百科ck, do .php files without any PHP in them get passed to the PHP 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

精彩评论

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