PHP Includes for header and footer
This is actually several questions.....
When using PHP includes for "header" files and "footer" files, when marking up the aforementioned files, it doesn't validate when you have doctype, <head>, etc on files. What is the customary way to markup the header and footer files so they validate?
I have simply the raw html and right now it looks fine. Is this the proper way of doing it?
Also, when search spiders crawl your site and you have it set up this way, will it index the header and footer files by themselves? Do you need to use robot.txt files to prohibit this from happening?