are some characters automatically escaped?
<p>I'm inputting some fields into a database. One had a value of </p>

<pre><code>foto's
</code></pre>

<p>and when I checked in the <code>$_POST[]</code> where that was contained it had</p>

<pre><code>foto\'s
</code></pre>

<p>does this happen automatically? I have (not yet) any escaping in my script.</p>

<p>Update: So it's the magic quotes that is doing it. The php.ini-file looked like this:</p>

<pre><code>; Magic quotes
;
</code></pre>

<p>So I changed it to:</p>

<pre><code>; Magic quotes
;

; Magic quotes for incoming GET/POST/Cookie data.
magic_quotes_gpc = Off

; Magic quotes for runtime-generated data, e.g. data from SQL, from exec(), etc.
magic_quotes_runtime = Off

; Use Sybase-style magic quotes (escape ' with '' instead of \').
magic_quotes_sybase = Off

; Use Sybase-style magic quotes (escape ' with '' instead of \').
magic_quotes_sybase = Off
</code></pre>

<p>But in phpinfo this is  still on:</p>

<pre><code>magic_quotes_gpc    On  On
</code></pre>
