Hi, I just had an idea for a compilation of functions that will help with some developments.
I hope this thread will help some people.
Please post in the format I do.
What's it for?
Filtering text(meant for POST and GET request's) to make sure there is no malicious code etc...
Usage:
filter(text to filter)
Actual function:
Yes, I stole this from some cms and stuff.
I hope this thread will help some people.
Please post in the format I do.
What's it for?
Filtering text(meant for POST and GET request's) to make sure there is no malicious code etc...
Usage:
filter(text to filter)
Actual function:
PHP:
function filter($var)
{
return mysql_real_escape_string(stripslashes(htmlspecialchars($var)));
}
Yes, I stole this from some cms and stuff.