简体   繁体   中英

PHP and Keywords

I would like to know if I can make a php script that will allow me to echo keywords into a meta tag.To be more precise will the keywords echoed by the php script be indexed by search engines? I don't need the actual script I just need to know if this will be any good for indexing.

Sure you can. They will also be seen by Google crawler/bot. The reason is that PHP is server-side language, your code is generated on server and sent back to browser for people and search engines to see.

From what I know it won't do you any good. The search engine crawlers will see your meta tag, but Google, for example, ignores the keywords when determining relevance.

If you want search engine visibility you should focus on your content and presentation. Be sure to follow the w3c recommendations on publishing HTML content.

search engines crawl web pages (actually their "robots" do). how you generate the content of the pages is not relevant. important is that you generate the content in a SEO (search engine optimization) way.

it is best to check out googles ressources on how to structure that content: http://www.google.com/support/webmasters/bin/answer.py?hl=en&answer=35291

You can try something like this:

<meta name="keywords" lang="<?=$language;?>" content="<?=$keywords;?>"  />

The variable $keywords should contain the keywords separated with , for example: "news, php, java, perl"

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM