Displaying url as a link!

Justcrapx's Avatar
Light Poster
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.
pradeep's Avatar, Join Date: Apr 2005
Team Leader
You'll need to parse the URI and print it out with an ANCHOR (<a href=''>) tag. Then only will it be clickable.