2011-11-10 33 views

回答

0

最簡單的解決方案是使用popenchpasswd

$handle = popen('/usr/sbin/chpasswd', 'w'); 
fputs($handle, "user:password"); 
fclose($handle);