title: How to turn off magic quotes on shared hosting?
body: <p>I want to turn off PHP's magic quotes.  I don't have access to php.ini.</p>
  
  <p>When I tried to add <code>php_flag magic_quotes_gpc off</code> to my .htaccess file, I get a 500 internal server error. This is what my .htaccess file looks like:</p>
  
  <pre><code>AddType x-mapp-php5 .php
  php_flag magic_quotes_gpc off
  </code></pre>
  
  <p>Then I tried to use <code>ini_set('magic_quotes_gpc', 'O')</code>, but that had no effect.</p>
  
  <p>How do I turn magic quotes off?</p>