dongsigan2636 2012-04-05 00:46
浏览 24

使用php或ajax在搜索优化中包含索引文件中的内容

I have been designing a website for the past few days and I realized I may be using the wrong format to code the website.

I generally would use in the index.php (this is simple for dicussion)

<?php 
require("header.php");
include("home.php");
require("footer.php);
?>

I can use this for setting up an easy layout where I do not need to rewrite the code over again for a new page.

Or sometimes I would use a variant of that to have it point in the link i wanted.

A friend of mine told me this is not a good way to have pages load because of searching for google and such.

I'm wondering if I have to somehow use Ajax and writing codes according to googles crawling system (I'm really confused about)

  • 写回答

1条回答 默认 最新

  • dongou4052 2012-04-05 00:49
    关注

    PHP is run serverside when the page is requested so it will have already run when a client is able to view the page. Whatever you output with the php will be what is seen, not the actual php.

    评论

报告相同问题?