HI, I have a DC hub running on my server as well as my php site. What i want to do is have my website also place the username and password into an external file. This way as a user registers his/her username and password is also placed into another file called "reglist2". the hub also uses MD5 encryption, so this is good. So this is the code i have written up. I placed this section of code after the "finishnewuser function"
Code:
function odch($filename, $content, $fw, $fp, $username, $new_password) {
$filename = "~/opendchub/reglist2.txt";
$content = "$username $new_password 0\n\r";
$fp = fopen($filename, "a");
$fw = fwrite($fp, $content);
fclose($fp);
}
This should place the username and password into the file reglist2.txt correct? or are there errors? Thanks in advance