PHP Include Help - Multiple <head> tags ok on includes
Posted: Thu Feb 23, 2006 11:17 am
Hello all,
I'm rather new to PHP right now, all i've really messed with so far is include statements so my apologies if this is a dumb question. It's not exactly PHP related, but my includes are the only place that i've ran into this issue.
Basically what i'm doing is i'm using multiple includes on a page, sometimes for content, and sometimes for menu's etc. My question is, will I run into problems if I have multiple head tags, and meta tags on the finished page that is built? Obviously my main page has a head tag that contains meta tags, and the page that i'm calling has a head tag with its own head tag and meta tags as well. While I haven't seen any visual problems, everything looks fine visually.. but what worries me is the search engines.. will they even recognize the second head tag, and second set of meta tags? If so, which ones will they give presidence to, or will they treat them equally, and combine the two sets? My content pages change from time to time, so I can't keep static meta tags on my main page, so i'm hoping that the search engines will recognize the second set.
I looked all over the net for an answer, but I haven't been able to find anything. Any suggestions at all would be greatly appreciated, thanks.
I'm rather new to PHP right now, all i've really messed with so far is include statements so my apologies if this is a dumb question. It's not exactly PHP related, but my includes are the only place that i've ran into this issue.
Basically what i'm doing is i'm using multiple includes on a page, sometimes for content, and sometimes for menu's etc. My question is, will I run into problems if I have multiple head tags, and meta tags on the finished page that is built? Obviously my main page has a head tag that contains meta tags, and the page that i'm calling has a head tag with its own head tag and meta tags as well. While I haven't seen any visual problems, everything looks fine visually.. but what worries me is the search engines.. will they even recognize the second head tag, and second set of meta tags? If so, which ones will they give presidence to, or will they treat them equally, and combine the two sets? My content pages change from time to time, so I can't keep static meta tags on my main page, so i'm hoping that the search engines will recognize the second set.
I looked all over the net for an answer, but I haven't been able to find anything. Any suggestions at all would be greatly appreciated, thanks.