Need php5 upgrade help again, please..
Hey,
I am getting depreciation errors because a script I have is running php4 and the server no longer supports it. I realize that php5 has no eregi support at all and instead is replaced with the pregi and preg_match functions. But I can't write that. I've lost almost all of my php skills. A little help?
I need this:
PHP Code:
function injection_chars($s) {
// returns TRUE if 'bad' characters are found
return (eregi("\r", $s) || eregi("\n", $s) || eregi("%0a", $s) || eregi("%0d", $s)) ? TRUE : FALSE;
}
to be rewritten in php5 syntax.
Please and thank you?