1. We have moved from vBulletin to XenForo and you are viewing the site in the middle of the move. Though the functional aspect of everything is working fine, we are still working on other changes including the new design on Xenforo.
    Dismiss Notice

Displaying url as a link!

Discussion in 'PHP' started by Justcrapx, Nov 22, 2006.

  1. Justcrapx

    Justcrapx New Member

    Joined:
    Oct 30, 2006
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    0
    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.
     
  2. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,646
    Likes Received:
    86
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    You'll need to parse the URI and print it out with an ANCHOR (<a href=''>) tag. Then only will it be clickable.
     

Share This Page