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. Quote Link to comment 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; Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.