php - magic_quotes help -
recently have been faced problematics magic_quotes provides. did notice there 3 different type(s) what?
- magic_quotes_gpc
- magic_quotes_runtime
- magic_quotes_sybase
i know it's practice check enabled magic quotes ones should check if not gpc?
if (get_magic_quotes_gpc() || get_magic_quotes_runtime()) { $string = stripslashes($string); }
i want able have similar runs in code way if ever issue server working fix magic quote issues.
how guys/girls perform check that's successful or correct?
magic_quotes_gpc() applies data coming (g)et, (p)ost, , (c)ookies
magic_quotes_runtime() applies data coming in source (file_get_contents(), fread(), etc...)
magic_quotes_sybase switches between escaping single quote ('
) , backslash (\
), not databases use backslashes escaping (like sybase).
Comments
Post a Comment