Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Textfilter without messing with uppercase
Old 04-27-2008, 08:20 PM Textfilter without messing with uppercase
Novice Talker

Posts: 7
Trades: 0
I'm working on a filter for a bulletinboard to prevent spam and exploits.

Right now I'm using str_replace() to filter out keywords. But if they mix uppercase and lowercase in the same word, it doesn't work. I could convert everything to lowercase first, but then I'd mess up their text.

How to solve this?
Mikon is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-27-2008, 08:28 PM Re: Textfilter without messing with uppercase
Extreme Talker

Posts: 177
Trades: 0
str_ireplace() I believe is used for case insensitive replacement.
kbfirebreather is offline
Reply With Quote
View Public Profile
 
Old 04-27-2008, 08:37 PM Re: Textfilter without messing with uppercase
Novice Talker

Posts: 7
Trades: 0
Thanks
Mikon is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Textfilter without messing with uppercase
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.39899 seconds with 12 queries