I'm trying to open the Apache htpasswd file from PHP. This file (program) needs filling in 3 lines (username, password, retype password). I'm trying to do this using the popen() function but this doesn't work for the time being. Can someone help? The code used is:
$fp = popen("/var/www/html/login_pms/htpasswd -c .htpasswd " . get_result($result, $row, nk_user_email) . "\n" . get_result($result, $row, nk_user_password) . "\n". get_result($result, $row, nk_user_password) . "\n", "w");
pclose($fp);
Thanks already,
Paul van Asten