News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Abhinav Singh's Blog:
Wordpress style "Duplicate comment detected" using Memcached and PHP
January 02, 2010 @ 07:36:27

Abhinav Singh has a new post today looking at his method for preventing duplicate comments (similar to a method used on Wordpress blogs) using memcached.

In this blog post, I will put up some sample PHP code for Duplicate comment detection using Memcached without touching the databases. Towards the end, I will also discuss how the script can be modified for usage in any environment including forums and social networking websites.

His method uses a custom function (is_repetitive_comment) to create an md5 hash of the comment and username to check against the stored values on the memcached server. Code is included as is an explaination of how it all works together.

0 comments voice your opinion now!
memcached duplicate comment wordpress


blog comments powered by Disqus

Similar Posts

Rafael Dohms' Blog: Book Review: The Art of Readable Code

Ed Finkler's Blog: What Matt Mullenweg doesn't know about PHP5, and how it hurts him and his users

Brian Moon's Blog: PHP and Memcached: The state of things

NETTUTS.com: 15 Wonderfully Creative Uses for PHP

ImproveSpeed.info: How to Optimize WordPress .htaccess File


Community Events











Don't see your event here?
Let us know!


opinion security podcast unittest composer application package introduction install framework facebook database support hhvm component hack release symfony2 performance language

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework