开发者

PHP Include() - Header and Footer

I use php include() for my header, footer, navigation etc.

I have the following code repeated on each of my pages

  <开发者_运维技巧?php include 'includes/header.php'; ?>

Is there a faster way to do this? Can I store the data i am including somewhere for loading speed??


  1. If you aren't experiencing any problems with loading pages, you shouldn't be concerned of a faster ways.

  2. If you're experiencing some problems with page loading, these problems certainly NOT from the way you're including headers. You have to profile your site execution and find real part that slows whole thing down.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜