Reputation: 75
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??
Upvotes: 0
Views: 1316
Reputation: 158007
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.
Upvotes: 6