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?


1 Answer 1


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.

  • 3
    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. Commented Dec 27, 2012 at 1:04

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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