title: connect to a server via sftp php
body: <p>how do we connect to a remote server via sftp to verify if the login details are valid in php...</p>
  
  <p>i'm using apache server... my use is to check whether the login details entered by user is correct or not.</p>