Assuming we're talking about magic_quotes_gpc (as opposed to the rarely used magic_quotes_runtime setting), once the script has started it's too late. It must be set either globally via php.ini or at the directory level via a .htaccess setting (if Apache).
Otherwise all you can do is compensate for it by undoing its damage via [man]stripslashes/man.