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
788
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
885
posted 15 years ago by kossmoss