PHP 8.3.22 Released!

Voting

: four plus zero?
(Example: nine)

The Note You're Voting On

bau at kg-fds dot de
19 years ago
Oh I forgot the following:

to change a Users password via PHP,
you can use the following (under Linux with installed Samba):

exec('echo -e "'.$oldpassword.'\n'.$newpassword.'\n'.$newpassword.'
"|smbpasswd -U'.$user.' -s')

The exec-command returns ""
if an error occured (then see the error_log of the web-server)
or a message "The password has been changed".

Good luck.
Baumg?rtner

<< Back to user notes page

To Top