Displaying url as a link!

Light Poster
22Nov2006,05:47   #1
Justcrapx's Avatar
I'm working on a message application for my website, its almost finished but i cant find a way to turn urls into clickable links. When someone sends a message including a link, it only shows but i cant click it. I tried the str_replace() functcion but could make it though.
Team Leader
22Nov2006,10:37   #2
pradeep's Avatar
You'll need to parse the URI and print it out with an ANCHOR (<a href=''>) tag. Then only will it be clickable.