URL parameters to file
<p>how to create and write a file using url parameters</p>

<p>for example:
web.com/index.php?name=test.txt?input=halloworld </p>

<p>file name should be test.txt and its content must be halloworld.</p>

<p>this is what i have so far</p>

<pre><code>if(isset($_GET['name']))
{

    $File = $_GET['name']; 
    $Handle = fopen($File, 'w');
    $Data =  $_GET['input']; 
    fwrite($Handle, $Data);
    fclose($Handle); 
}
</code></pre>

<p>file output = test.txt?input=halloworld which is wrong</p>

<p>thank you.</p>
