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.
<?php
$command="sftp user@ip adress";
shell_exec($command);
?>