Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

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/… –  w3d Dec 29 '12 at 8:34

1 Answer 1

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
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. –  Zev Chonoles Dec 27 '12 at 1:04

Your Answer

 
discard

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.