MasterACE14 Posted July 3, 2007 Share Posted July 3, 2007 Can you create a meta tag and put it in a variable like this: <?php $meta = '<meta name = "creator" content = "ACE" > <meta name = "keywords" content = "Online,MMORPG,game,fun,crazy,roleplay" > <meta name = "description" content = "Conflicting Forces is a MMORPG" > <meta http-equiv = "Content-Type" content = "text/html; charset = ISO-8859-1" > <style type = "text/css" > body { background-color: black; color:white } </style>'; ?> and then on another page include("metatag.php"); and will that set the pages meta tag on that page? Regards ACE Link to comment https://forums.phpfreaks.com/topic/58193-solved-meta-tags/ Share on other sites More sharing options...
jitesh Posted July 3, 2007 Share Posted July 3, 2007 yes create a file meta.php like this <?php $meta = '<meta name = "creator" content = "ACE" > <meta name = "keywords" content = "Online,MMORPG,game,fun,crazy,roleplay" > <meta name = "description" content = "Conflicting Forces is a MMORPG" > <meta http-equiv = "Content-Type" content = "text/html; charset = ISO-8859-1" > <style type = "text/css" > body { background-color: black; color:white } </style>'; echo $meta; ?> Then inculde like this include_once ('meta.php'); Link to comment https://forums.phpfreaks.com/topic/58193-solved-meta-tags/#findComment-288618 Share on other sites More sharing options...
MasterACE14 Posted July 3, 2007 Author Share Posted July 3, 2007 Excellant! Thanks Regards ACE Link to comment https://forums.phpfreaks.com/topic/58193-solved-meta-tags/#findComment-288619 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.