Building a Content Rich Website - Part 4 - However when a...
(Page 2 of 3 )
However when a search engine visits a page with PHP code, the PHP code gets executed and the search engine only gets to "see" the result of the PHP code, i.e. the search engine doesn't even know there is PHP code there, it just gets content that is generated by the PHP code.
Another slightly more complex way to add dynamic content to your pages also involves using PHP code. What you can do is to setup a single file that contains different "blocks" of content. You then need to add PHP code to your pages that will randomly select one of the blocks from the file you setup and display it on your page(s). You could expand this idea further by setting up several files with content blocks and writing PHP code that will select from as many as the files you have setup as is appropriate for each of your pages.
More Website Content Articles
More By Jase Dow