Magic quotes are a hassle prone slacker tool.
It's an interpreter that tries to auto-matically quote/unquote everything for you.
Even if you don't want things quoted/unquoted, and sometimes it fails to unquote, or messes you up by adding qyuotes where you never wanted them, and causing you to output quoted strings.
Just say no to Magic Quotes.
You want to quote your nasty chars?
Be a man and cslash it.
<?
function bless($heathen_var) {
$blessed_var = addcslashes( $heathen_var, "\0..\37!\177..\377" );
return $blessed_var;
}
function unbless($blessed_var) {
$heathen_var = stripcslashes( $blessed_var );
return $heathen_var;
}
?>