PHP. Uninteresting to load <head> </head> data as include
4 answers
Question: are you planning to use the same block <head>
on multiple pages?
If yes, then: no, it would be nice to save it in a file that can be used for multiple pages.
Second question: will it make it easier for you?
If yes, then: no, it's not a bad idea to make things easier.
And if you think "this would mean uploading / including another file, won't that kill my server?"
Then, again: no, it won't: no one will notice such an overhead :-)
(And the file, if used frequently, will most likely be cached in your OS's RAM anyway)
+4
source share