title: Use of sftp with shell_exec php
body: <p>I'm trying to get a file from a remote host but it asks me the password and the script is supposed to run without me to type the password. How can I send the password? I have to use shell_exec.</p>
  
  <pre><code>&lt;?php
      $command="sftp  user@ip adress";
      shell_exec($command);
  ?&gt;
  </code></pre>