magic_quotes_gpc off on sharehosting with $_POST Array
<p>It's pain in the <em>*</em> with magic quote on on the share server, and I am giving up on upload another php.ini to overwrite the share host php.ini, because then other problem occurr, (PDO in configure but not loaded and ect) I tried .htaccess which give a 500 error.</p>

<p>so i have found this solution is pretty good and works well
<a href="http://stackoverflow.com/questions/517008/how-to-turn-off-magic-quotes-on-shared-hosting">How to turn off magic quotes on shared hosting?</a></p>

<pre><code>if ( in_array( strtolower( ini_get( 'magic_quotes_gpc' ) ), array( '1', 'on' ) ) )
{
    $_POST = array_map( 'stripslashes', $_POST );
    $_GET = array_map( 'stripslashes', $_GET );
    $_COOKIE = array_map( 'stripslashes', $_COOKIE );
}
</code></pre>

<p>Until i start to post array to the server </p>

<pre><code>&lt;select name="gropu[]"&gt;
&lt;option value="1"&gt;2&lt;/option&gt;
&lt;option value="2"&gt;1&lt;/option&gt;
&lt;option value="3"&gt;3&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>then i have the following errro</p>

<pre><code>Warning: stripslashes() expects parameter 1 to be string, array given in index.php on line 18
</code></pre>

<p>Please help me on this, it really annoying me while developing something ok on the localhost and once upload to the server it just all wrong...</p>
