note 80730 added to function.str-replace

From: Date: Wed, 30 Jan 2008 08:10:58 +0000
Subject: note 80730 added to function.str-replace
Groups: php.notes 
Request: Send a blank email to php-notes+get-135588@lists.php.net to get a copy of this message
Thanks admin at sellchain dot com and thewolf at pixelcarnage dot com for your profanity filters. What follows is one I wrote, different in that the target "bad" words are loaded/managed externally and I wanted the ability to leave words alone such as "pass" and "peacock", which would be corrupted by admin at sellchain dot com's algorithm. thewolf's idea of using is_similar is clever, but I went with a regexp approach instead. I'd be interested to see just how effective her/his more fuzzy approach would be compared to this one. Anyway, my attempt can be found (too long to post here) in the code found at the following link - open the tarball and see the function named "strip_profanities" in functions.php therein. http://squirrelmail.org/plugin_view.php?id=265 ---- Server IP: 69.147.83.197 Probable Submitter: 71.142.198.10 ---- Manual Page -- http://www.php.net/manual/en/function.str-replace.php Edit -- https://master.php.net/note/edit/80730 Del: integrated -- https://master.php.net/note/delete/80730/integrated Del: useless -- https://master.php.net/note/delete/80730/useless Del: bad code -- https://master.php.net/note/delete/80730/bad+code Del: spam -- https://master.php.net/note/delete/80730/spam Del: non-english -- https://master.php.net/note/delete/80730/non-english Del: in docs -- https://master.php.net/note/delete/80730/in+docs Del: other reasons-- https://master.php.net/note/delete/80730 Reject -- https://master.php.net/note/reject/80730 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#135588) next »