phpGiggle

by Yan

phpGiggle是一个自动把网页里的关键词转变成链接的工具。它对blog这样动态生成文档的网站特别有用。用开发者bierman的话讲:

phpGiggle locates user-defined keywords and phrases in an HTML document or string and subsequently replaces the keywords or phrases with anchor tags linking to user-defined URLs. As well, pre-defined ‘template’ anchor tags are included for Google.com, Dictionary.com, Webopedia.com, Vivisimo.com, CPAN.org, Freshmeat.net and others. With phpGiggle, anchor tags for an entire website can be contained in a single file, with links being dynamically generated when the HTML is displayed to vistor’s browser. This is particulary useful for sites with dynamically generated content, such as Blogs, News sites, etc. Content creators need-not worry about creating links when posting new content, as phpGiggle will auto link the keywords and phrases at runtime. phpGiggle performs dynamic anchor tag generation very quickly and with no noticeable impact to the browser, providing a pleasant user experience that includes plentiful links to additional content which the reader may find useful.

它这种功能让人想起wiki的wikiname。phpGiggle似乎更原始,所以也更开放。它不仅链接站内,还链接站外,比如cnblog,google,yahoo。。。但是和wiki的wikiname一样对中文还是不支持(不知道现在wikiname还是不是这样)。沿着这个idea开发,可能能有非常有趣的应用。