magic_quotes help
<p>Recently I have been faced with the problematics that magic_quotes provides. I did notice that there were 3 different type(s) however which does what?</p>

<ul>
<li>magic_quotes_gpc</li>
<li>magic_quotes_runtime</li>
<li>magic_quotes_sybase</li>
</ul>

<p>I know it's always good practice to do a check for enabled magic quotes but which ones should be check if not just GPC?</p>

<pre><code>if (get_magic_quotes_gpc() || get_magic_quotes_runtime()) {
    $string = stripslashes($string);    
}
</code></pre>

<p>I want to be able to have something similar to this that runs in any code that I do so that way if ever an issue with the server I am working with it will fix any magic quote issues.</p>

<p>How would you guys/girls perform the check that's successful or is this completely correct?</p>
