Hi all,
I have been building sites for years now... but just recently my hosting company flagged up an issue of too much resource useage in my account. I didn't even know I had a set limit.
They provide me a graph of total resource useage, and totals for each domain, but no breakdown by file, so it's hard to know exactly which bits of code are causing the most useage without a lot of testing. I managed to block a whole lot of bots which has solved the problem for now, but ultimately I want to use the sleekest methods where possible.
Anyway, I'm making a new site, and I will have templates for the header footer etc.
My favourite way of doing this is with a php file full of functions
$page -> header();
But I could always do an include
include("/home/mysite/public_html/includes/header.php");
My question is: which method uses the lowest resources, assuming they both create exactly the same header? Is there a significant difference once you get a lot of traffic?
Thanks all!