|
Posted by Shelly on 10/15/07 18:18
I like to do the following as my style. For any page to be displayed, I
have three files.
File one: something.php
File two: somethingInclude.php
File three: something Process.php
File one essentially has little more than three lines withn the <?php ?>
block. They are:
require("somethingProcess.php");
$htmlInclude = "somethingInclude.php");
require("template.php");
template.php is all the unchanging html stuff that constitutes the look and
feel of the page. It also has in its middle a line <?php
require($htmlInclude); ?>, which pulls in the page specific html stuff in
the content area. (It may also pull in some other files because I don't
like any given file to get too big).
All the processing is done in somethingProcess.php.
My son tells me that by doing it this way it is inviting rejection by the
search engine spiders. I don't see why since all those spiders see is the
generated html code, which has all the meta-tags in it. Am I right or is
he?
If he is correct , I can always modify the template.php to only include the
body portion and keep everything else outside in the something.php file
(meta tags, scripts, etc.)
So, is he right or am I?
Navigation:
[Reply to this message]
|