Base 64 fwrite using php
<p>I want to use fwrite to post $username in base64 encoded
Here is my current source </p>

<pre><code>$fp = fopen("id.txt", "a");
fwrite($fp, " $username\r\n");
fclose($fp);
</code></pre>
