You shouldn't need to enable magic quotes, just code around them. Magic quotes are being removed from PHP entirely in the next version, so you'll have to start working around them soon anyway.
I generally use something similar to this in my abstraction classes:
Code:
function makeSafe($string) {
if (PHP_VERSION < 6 && get_magic_quotes_gpc()) {
$string = stripslashes($string);
}
return mysql_real_escape_string($string);
}
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.