title: php - proc_open (or other function that works)
body: <p>I need to do some command lines through a browser.
  What I need to do in a command-line would be:</p>
  
  <pre><code>$login
  &lt;login name&gt;
  &lt;password&gt;
  $passwd
  &lt;old password&gt;
  &lt;new password&gt;
  &lt;retype new password&gt;
  </code></pre>
  
  <p>So, how can I do this using the <a href="http://www.php.net/manual/en/function.proc-open.php" rel="nofollow noreferrer"><code>proc_open</code></a> function?
  Or should I use another function to do this?</p>
  
  <hr>
  
  <p>Adam Wright, I've tried your example, but I just can't change users password.
  do I need to do any other things in the script (besides defining $user, $userPassword and $newPassword)?</p>
  
  <p>Thanks</p>