hello I am quite new to PHP. I want to change the user password with help of the PHP,So how I can change the user password on the Unix eith help of the PHP ,So that user can change it\'s password from web page.
Changing a password from a webpage huge security risk.
There are two ways to do it, and they are both risky.
Use SUDO (external program, non-php related) to give the webserver root-access to the passwd program (security risk).
Write the password-change data to a file (major security risk) and use the crontab to execute another script as root, let that script read the file and change the passwords.