I would like to list the files of a directory in an other server
I am connected to an other server using ssh2_connect function the connection is going well and I am
In case anybody is struggling to get this to work, and you are running PHP 5.6.28
there was a recent update that either created a requirement or introduced a bug where intval()
must be used on each SFTP folder/file access function:
$handle = opendir("ssh2.sftp://".intval($sftp)."/path/to/directory");