Is there an easy way to identify off-site links using php?
For example, on a forum site like phpbuilder.com, I'm looking for code to flag posts that contain:
http://yahoo.com
www.yahoo.com
while ignoring:
http://phpbuilder.com
www.phpbuider.com
and relative URL's like:
/board/forumdisplay.php?f=2
/board/showthread.php?t=100