title: php exec() rsync ssh to remote server not working
body: <p>I am trying to rsync file from local to remote server.
  When i do this on console it works:</p>
  
  <blockquote>
    <p>rsync -avzhe ssh /var/www/folder1/file5
    root@192.168.56.74:/var/www/folder2</p>
  </blockquote>
  
  <p>but when i do this on my php and run the php script, it doesn't work:</p>
  
  <pre><code>$rysncCommand = "rsync -avzhe ssh /var/www/folder1/file5 root@192.168.56.74:/var/www/folder2";
  
  shell_exec($rysncCommand);
  </code></pre>
  
  <p>There is no error shown, so i can't really tell what is the error. Is there something wrong with my php script?</p>