Problem with $_GET and fopen
<p>I have a weird problem with <code>$_GET</code> method. I have a php code like this:</p>

<pre><code>$fopen("files/" . $_GET['file'], "r");
</code></pre>

<p>When i write file path parameter my self It's run good but when I get the file name from $_GET method it shows me some error like the path is wrong.</p>

<ol>
<li>What's wrong with it ? </li>
<li>Is there any special encoding for <code>$_GET</code> method to decode it to the right string        style. I tried urldecode but it wasn't make any change.</li>
</ol>
