Jump to content

Find URL and replace with HTML hyperlink


majocmatt

Recommended Posts

I have a database full of user input, some users enter in URLs.. when I display this information, I would like to go through the text, look for URLs and turn those into real hyperlinks... so I need to take http://www.whatever.com and make it a real hyperlink.

 

Am I in the right place? If so, how would I go about doing this?

 

I am using php/mysql and I would like to simply wrap a function around, for instance, my $output variable which holds the data retrieved from a user input.

Link to comment
https://forums.phpfreaks.com/topic/61147-find-url-and-replace-with-html-hyperlink/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.