Forum Moderators: coopster
I've developed (at my bosses insistance) a cms that allows the users to change content and also to change meta tags. I store the meta tags in the database and grab them when the page loads.
My question is: Will this even work for spiders? Ie, do spiders just read the file itself (in which case they'll just see the php tags) or do they actually process the page first like a browser and then look at it?
Sorry for the novice question (and for hijacking a thread).
Steerpike
So yes, it will work fine for spiders if you are seeing the results on your screen. If your db connections and/or queries fail, then the spiders will see nothing for your metatags. Probably not much much to worry about there. Just the same, on some of my pages I do check to see if the database values are present, and if they aren't then I have a hardcoded option to display instead.
if (isset($database_variable)) echo 'this';
else echo 'that';