Doesn’t have any dependencies, making it ultra-portable, and, surprisingly, it’s actually faster than libssh2.
th3_w3b
Great! It Works! Thanks!
jcrawford
This is great but don’t expect to use it on directories with a large number of files (mine has 29,516). I am getting nothing but segmentation faults when trying to get a list of files on the remote server. Yea I know it’s not good to have that many files in a directory but that server is not under my control. Seems there is a deep issue either in PHP’s core or in php_ssh2 library.
Mauro Trentini
PHP Warning: opendir(): Unable to open ssh2.sftp://Resource id #25/ on remote host
PHP Warning: opendir(ssh2.sftp://Resource id #25/): failed to open dir: operation failed
PHP Warning: readdir() expects parameter 1 to be resource, boolean given
http://www.monstaftp.com offers SFTP/SCP as well as normal FTP through a web-based client that’s free to download. (disclaimer: I’m involved with this project)
Calin Blaga
If getting:
PHP Warning: opendir(): Unable to open ssh2.sftp://Resource id #5/outgoing on remote host
check: stackoverflow.com/questions/1466737/cant-get-sftp-to-work-in-php#answer-42412427
Professional Technologist
My name is David Drake. I am a father and technologist who revels in creating things and tackling difficult problems.
Appreciator of the outdoors. Enjoyer of good humans, cooking, aromatic coffee, and plants. Actor for many years. Very fond of science; particularly astronomy and quantum physics. Likes to grow things and travel. Commodore 64 tattoo. Fan of PBS, Apple, and The NY Times. Constantly learning and loves to teach.
Everything I say is my own opinion and not representative of any organization.