-1
我需要一個php代碼來打印頁面標題和/或元描述。PHP代碼打印出頁面標題和元描述?
他們已經在那裏,但我需要它把動態標題在twitter上分享鏈接...
For example: This is Twitter sharing link which works :
<a href="http://twitter.com/share?text=Hello+World&url=<?php echo curPageURL();?>"
I want to include there Page Title/ or Meta Description
so the link would look like :
<a href="http://twitter.com/share?text=<?php /// ?>&url=<?php echo curPageURL();?>"
標題/中繼說明通過論壇和插件生成。
你爲此做了什麼? – 2013-02-28 10:03:47
SEO劫持者... – 2013-02-28 10:04:36
您可以使用$ location = $ _SERVER ['QUERY_STRING'];獲取服務器路徑和$ location = substr(strrchr($ location,「=」),1)獲取頁面名稱 – Johny 2013-02-28 10:06:19