Why wont this work?
if ($fp = fopen("passwords.pass", "a+")) { fwrite($username); fclose($fp); } else echo "Something went wrong: $php_errormsg";
Thanks Anthony
Aside from a missing braces, your syntax for fwrite is incorrect, see :
http://www.php.net/manual/function.fwrite.php
Don't forget the file pointer! :-)
fwrite($fp,$username);