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??
If you aren't experiencing any problems with loading pages, you shouldn't be concerned of a faster ways.
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.
精彩评论