Hi everyone, I am on the right track here, but i need a bit of help.
Code:
$filename = "/home/vudc007/.opendchub/reglist";
$cryptpass = crypt($user_password);
$regcontent = "$username $user_password 0\n";
$handle = fopen($filename, 'a');
fwrite($handle, $regcontent);
fclose($handle);
I have placed this into the activation function so that the username and password are also stored in another file. It seems to work, but i dont get any output for the $user_password string. It only writes "$username
blank 0" It is as if $user_password is empty. Im am new to php, so im not sure exactly how the functions work because i see in the activate function $user_password is not included. How do i modify this so that $user_password is not "empty". Or at leaset, what is going on behind the scenes here with the function syntax. Thanks alot. I hope someone answers me
Code:
function activate($username, $check_num) {