homepage Welcome to WebmasterWorld Guest from 54.196.159.11
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

    
PHPBB Link Keywords In Posts
mbennie




msg:3602011
 11:18 am on Mar 16, 2008 (gmt 0)

I'm running phpbb 3.0 and would like tho check each post against a large list of keywords (30K) and replace each keyword with a link.

I'm thinking about doing it at post time but not sure how it will degrade the performance. Other option is to run a cron job on the db each day.

Also would like any tips for optimizing this code so it runs fast. I am assuming I will store the keywords in an array and do a str_replace but it seems like that will take a lot of resources from the server.

Any suggestions?

 

Habtom




msg:3602034
 12:09 pm on Mar 16, 2008 (gmt 0)

If it is in a certain pattern, I believe it can also be achieved by mod rewriting.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved