Aha! Now the question is starting to make more sense.
Have a look at magic_quotes_gpc setting, here :
http://php.net/manual/configuration.php#ini.magic-quotes-gpc
After reading the above, and checking your php.ini for your setting ( or see phpinfo() ), it should make more sense. I doubt it has to do with magic_quotes_runtime.
If magic_quotes_gpc are to remain on, you'll need to use stripslashes() to strip them slashes, like so :
$str = "what\'s up?";
$str = stripslashes($str); // now $str = "what's up?"