enthalpy wrote:
> 
> anyone have example code of a change password script in php?
> 
> <-----CoreComm-Internet-Services--http://core.com/----->
> (Jon Marshall                 CoreComm Services Chicago)
> ([EMAIL PROTECTED]         Systems Engineer II)
> ([EMAIL PROTECTED]                   Network Operations)
> <-----Enthalpy.org------------http://enthalpy.org/----->
> ([EMAIL PROTECTED]             The World of Nothing)
> <------------------------------------------------------>
> 
> --
this is for freebsd - use at your own risk -
best used as a php shell script run by root


$newpassword = "veryinsecure";
$fp = popen("/usr/sbin/pw usermod -n username -h passwd", "w");

fputs($fp, "$newpassword");
pclose($fp)

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to