fwrite() and special characters
<p>this is the URL to upload in my website the "file.txt" with a "var$" content:</p>

<pre><code>http://www.mywebsite.com/fwrite.php?stringData=var$&amp;myFile=file.txt
</code></pre>

<p>The content of "fwrite.php" is:</p>

<pre><code>&lt;?php
$myFile = $_GET['myFile'];
$fh = fopen($myFile, 'w') or die("can't open file");
$stringData = $_GET['stringData'];
fwrite($fh, $stringData);
fclose($fh);
?&gt;
</code></pre>

<p>It works well, but if the "var$" content contains special characters (like a "+" for example), "file.txt" will have a blank space instead of the correct character.</p>

<p>How could i solve it? Thank you!</p>
