Re: detecting spam keywords with stripos

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Merlin Morgenstern wrote:

> Hi there,
> 
> I am matching text against an array of keywords to detect spam.
> Unfortunatelly there are some false positives due to the fact that
> stripos also finds the keyword inside a word.
> E.G. "Bewerbung" -> "Werbung"
> 
> First thought: use strpos, but this does not help in all cases
> Second thought: split text into words and use in_array, but this does
> not find things like "zu Hause" or "flexible/Arbeit"

First thought - use Spamassassin.
Second thought - use regexes.

/Per

-- 
Per Jessen, Zürich (17.1°C)


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux