Profile
Achievement
kossmoss's Recent SnippetsTagged replace
- All /
« Prev 1 Next »
You can get hostname from script environment - getenv("HTTP_HOST")
(?!'.$host.') matches URLs always except local links
0
799
posted 15 years ago by kossmoss
Affects <A> tags for links starting with $link
Example: LinkReplacer ($text, 'http://www.snipplr.com') affects to
<a href="http://www.snipplr.com">Snipplr</a>
and <a href="http://www.snipplr.com/blog">Snipplr Blog</a>
0
908
posted 15 years ago by kossmoss