php template and searchability (cross posted)

    Date: 01/11/06 (PHP Community)    Keywords: php, google

    I would like to build a site using php that has several repeated elements (headers, footers, menu) that appear on every page, with only the central content and some of the styling (to highlight menu items) changing.

    It works well so far, but a friend tells me that this method is less search-friendly than coding out each individual page and that it will be ignored by Google. Is this true?

    Also, give then common-template model, is it better to:

    1. Load all pages from a single php file with page-specific content in individual functions

    2. Load each page with its own content and use includes for common elements

    3. Have a central controlling php file that assembles each page by includes from a separate file for each part (header, content, footer, etc)

    4. Make each page a complete static unit with duplicate headers, footers, etc identical to other pages.

    I can make any of these work, though #4 seems highly tedious. I just want opinions on which ones are considered more efficient and more "searchable."

    Source: http://community.livejournal.com/php/393696.html

« PHP shell access question || PHP Frameworks »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home