I want to use fwrite to post $username in base64 encoded Here is my current source
$fp = fopen(\"id.txt\", \"a\"); fwrite($fp, \" $username\\r\\n\"); fclose($fp
Maybe I'm missing something but using the base64_encode function should work out nicely.
Or does:
$fp = fopen("id.txt", "a"); fwrite($fp, base64_encode($username) . "\r\n"); fclose($fp);
not work out for you?
To me it seems that it could.