Julian Posted September 29, 2006 Share Posted September 29, 2006 Hi GuysI'm looking for a way I can convert keywords (from a .txt or whatever) to URL links.e.g. Like if I have "[color=red]computer[/color]" on the .txt file when the browser display this word on the page "[color=red]computer[/color]" will be a link to somewhere.I've tried phpgiggle but it seems to be outdated and there's no support.Any help will be highly appreciated. Link to comment https://forums.phpfreaks.com/topic/22515-how-to-convert-keywords-from-a-txt-file-to-url-links/ Share on other sites More sharing options...
True`Logic Posted September 29, 2006 Share Posted September 29, 2006 $m = "" . include("file.txt");$m = str_replace("computer", "<a href=\"www.computers.com\">computer</a>", $m);echo $m; Link to comment https://forums.phpfreaks.com/topic/22515-how-to-convert-keywords-from-a-txt-file-to-url-links/#findComment-101035 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.