hi everyone, i've been trying to figure out how to add keywords using the php code below but i dont know where to add the keywords i.e. thereal24.com, real 24, etc. i cant seem to figure out where i would be putting the keywords. any help is appreciated!! /* since global constants can't be arrays... */ $keywords = array(); /* List of meta keywords for search engines. The name of the person is automatically added */ $goodwords = array(); /* An array of words not in the default dictionary, but you would like to have. Usually the person's surname is in here, unless it is a really common one like Smith or Robinson */
Well if you are wanting to know how to add key words to the array this is how you do it. But your question is kind of vague. Can you explain a little more in detail as to what you are doing? $keywords = array(); $keywords[] = "thereal24.com"; $keywords[] = "real 24"; Code (markup):
Quite an understatement I would say. Are you asking where META Keywords should go in your PHP code? Why don;t you just put them in HTML?
I was just coming here to post the same question. Can you put your meta tags just in HTML and not put it in php for a php website? My problem is that my web person did my meta tags, and I cant get my title tags (at least to appear in the blue part of the browser). They appear as the URL. I didn't mean to hijack,but was curious about if the meta tags can be in html.
META tags are HTML. Here is a good article about META tags. http://searchenginewatch.com/webmasters/article.php/2167931 The title should be in title tags like this: <head> <title>My Website Title</title> </head> Code (markup):
sorry about the vagueness, yeah i am wondering where the meta keywords would go in the PHP code. can i put html and PHP coding in the same file?
Yeah <?php php code here ?> html here <?php php code here ?> Code (markup): You can also echo HTML from php echo "<a href=\"mylink.php\">my link</a>"; Code (markup): But you have to escape the quotes in your HTML if you are going to echo it.
Hi. How come you are putting your meta tags in PHP? If this is not for a custom CMS, might I suggest the usage of mixing HTML in PHP and just using some PHP includes to act as dynamic pages?