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)
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.