majocmatt Posted July 21, 2007 Share Posted July 21, 2007 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 More sharing options...
redarrow Posted July 21, 2007 Share Posted July 21, 2007 str_replace function Link to comment https://forums.phpfreaks.com/topic/61147-find-url-and-replace-with-html-hyperlink/#findComment-304310 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.