Jump to content


How to convert keywords (from a .txt file) to URL links?

  • Please log in to reply
1 reply to this topic

#1 Julian

  • Members
  • PipPipPip
  • Advanced Member
  • 148 posts

Posted 29 September 2006 - 05:07 PM

Hi Guys

I'm looking for a way I can convert keywords (from a .txt or whatever) to URL links.

e.g.  Like if I have "computer" on the .txt file when the browser display this word on the page "computer" 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.

#2 True`Logic

  • Members
  • PipPipPip
  • Advanced Member
  • 59 posts

Posted 29 September 2006 - 06:33 PM

$m = "" . include("file.txt");
$m = str_replace("computer", "<a href=\"www.computers.com\">computer</a>", $m);
echo $m;

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users