Unanswered: Is it safe to include HTML <head> section in a separate file?
I have about 9 years experience of HTML but i'm pretty well new to PHP. I learned both on my own, mostly using google. So i don't have much idea about what techniques do others practice while designing a website.
My problem is I want to save <head>...</head> in a separate file and include() it in all PHP files. So that I could change css3, website theme, favicon etc easily.
Just wanted to ask, is this common practice? Is it safe? What problems it can cause?
That should be fine, and in fact is similar to what Rasmus Lerdorf (creator of PHP) does in his "no framework" framework example (although the page seems to be down at the moment of this posting, although Google has the page cached if you search for it).