Forum Moderators: open

Message Too Old, No Replies

Body text in PHP includes

Will it be the same as putting text right in the main page?

         

Undead Hunter

5:59 pm on Jul 21, 2003 (gmt 0)

10+ Year Member



Hi Folks:

We're working on a site where a decision was made to have normal .php pages, but use includes for the Top of the Page, Body text, and Footers. The menu is already a javascript, and global across the site. Of course, we'll have a text link to the Site Map on every page, so Google and others can still crawl the site.

The idea behind coding the Top of the Page and Footers as includes is that it would be "easy" to change the look of the top across the site by just changing one file. Ditto for the footer.

But the reason for putting the text into a "body" include is different - that way the entire look of the site can be changed or tossed, and/or new sections with a different look can be created at a later date...

I don't know how useful that will be. Would save some cutting and pasting down the road. The biggest question or concern - if we put the body text in a php include, is Google going to rank the page correctly? Will it make any difference at all?

Ex. <?php include"page_one_text.inc")?> and so on?

dmorison

6:02 pm on Jul 21, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Nobody outside of your server has any idea that you have used PHP's include() function.

What you spit out is HTML, nobody can tell how you made it. There may be circumstantial evidence to suggest that you are using PHP, but there is certainly no way that anybody could pick up the fact that you were using an include on your page (unless it was commented in a non-parsed section of your source! ;)