I have seen posts which indicate that database linked keywords and descriptions are not viable for SEO purposes.
I have also read posts which say that output php has the same SEO potential as html.
I have PHP echoed meta keywords and a meta description fetched from an editable text file in a relative linked folder.
Code:
<?php
$myFile = "textSourceFiles/metaDescription.txt";
$fh = fopen($myFile, 'r');
$theData = fread($fh, filesize($myFile));
fclose($fh);
echo "<meta name='description' content='$theData' />";
?>
Short question: Is this pointless? (the keywords and description output is perfect, by the way)
Many thanks
/Brian
There is nothing wrong with doing this t all. It appears as if it was in the HTML doc. What you don’t want to do is use JavaScript to pop them out as the page has already loaded. As long as it is done on the server end and not after the page has been parsed, search engines won’t have any clue or care about how it was done.
On that note, why read the file and then echo it out? Why not just include it in the right place?