Search found 2 matches

by geekinchief
Fri Sep 11, 2009 5:28 pm
Forum: PHP - Code
Topic: Automatically linking 1-3 word phrases in article text
Replies: 3
Views: 173

Re: Automatically linking 1-3 word phrases in article text

I wonder, though if each word should be a token, rather than each line. However, I might need to run this through 3 times, one for 3 words in a row, one for two words in a row, and another for individual words.
by geekinchief
Fri Sep 11, 2009 2:32 pm
Forum: PHP - Code
Topic: Automatically linking 1-3 word phrases in article text
Replies: 3
Views: 173

Automatically linking 1-3 word phrases in article text

I'm writing a PHP script which will take a list of product names from a database (each name is probably 1-3 words in length) and go through the text of a blog post and link any of the names on the list back to a page about that item. Additionally -- and this is key -- I need to make sure it DOES NOT...