Jump to content

Not sure what function should i use


scuarplex

Recommended Posts

Hi, im posting here because i'm not sure what function should i use or how to do it.

 

My idea is to search strings such as: ',",%27,SELECT,INSERT,script, and a few other dangerous inputs. If i find any of these in a string then i return true to do a few other things.

 

I'm aware of mysql_real_escape_string, but i don't want to just filter the input. I also been checking out functions such as strstr, but the needle takes only one string to find.

 

Are you guys aware of any functions that i can use to search a few words from one input string?

 

Otherwise i'll just use strstr with a while or something like that.

 

Thanks in advance. (Sorry if this topic don't belong here, i'm not sure.)

Link to comment
https://forums.phpfreaks.com/topic/237390-not-sure-what-function-should-i-use/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.