Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am following the procedure described on this page for including a common header on every page of a website, which uses PHP.

After describing how to include one page in another using PHP, the author then describes how to deal with information that might vary from page to page.

I have included an image of the relevant section below:

enter image description here

My question is, if I set up my website this way, will Google (or other search engines) see the meta description of the page index.php as <?php echo $page_description: ?>, as Description of this page, or just not see it at all?

share|improve this question
Why was this question downvote-worthy? – Zev Chonoles Dec 28 '12 at 15:53
Related: webmasters.stackexchange.com/questions/38506/… – w3dk Dec 29 '12 at 8:34
up vote 5 down vote accepted

Search engines, just like every other user, only see the output of your scripts. Not the source code.

FYI, meta tags do not affect your rankings.

share|improve this answer
Ah, I see - thanks for your help, I'm still very much a novice with this. I did read that meta keywords are rarely used anymore, but the meta description is (at least usually) what shows up as Google's "snippet" for the pages on my site, which is mildly useful. – Zev Chonoles Dec 27 '12 at 1:04

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.