I just decided to get ultra-lazy again 🙂
I don't want to change my HTML-headers etc everytime around, and for instance, the URL to my CSS-stylesheet etc, so I decided to make a quick PHP function, to do everything for me:
function dohtml($start)
{ // creates HTML-tags, gives the opening of the page if $start is true, else, gives end of page
if ($start == TRUE)
{
print"\n<HEAD>\n<TITLE>Game Masters Website</TITLE>\n";
print"<LINK REL=\"StyleSheet\" HREF=\"site.css\" type=\"text/css\">\n";
print"</HEAD>\n<BODY>\n";
}
else
{
print"\n </BODY>\n";
}
}
Now it maes my tags etc, puts my links, I'm gonna put in my no-aching function there too, but What I was wondering about. Is this costly for a server, I mean memory and cycle-wise, to do it this way. It's easier for me when coding, but it has to be parsed and all, I was wondering how much power this single If/else statement and the print commands are, instead of just putting the tags all in a HTML file..
Any info on this, or an URL where to find this info, is appreciated..
-GreyFox