title: How to get current directory name from sftp server
body: <p>I am connecting to remote sftp server using ssh2 functions. Now I need to get current directory name. In case of ftp server I can use ftp_pwd but I can't find similar function for ssh2</p>
  
  <p>I need php code </p>