php fopen - name of file
<p>I currently have:</p>

<pre><code>&lt;?php
    if (isset($_POST["submitwrite"])) {
        $handle = fopen("writetest.txt","w+");
        if ($handle) {
            fwrite($handle, "Dan"."¬".$_POST["username"]."¬".$_POST["pollname"]."¬".$_POST["ans1"]."¬".$_POST["ans2"]."¬".$_POST["ans3"]."¬".time());
            fclose($handle);
        }
    }
?&gt;
</code></pre>

<p>However I need to adjust the filename to be dynamic, instead of 'writetest.txt' I would like it to be: username+pollname+time.txt taking the $_post variables.</p>

<p>I would also like to change the directory these files are stored in to /results.</p>

<p>Help please...</p>
