Re: Hoping for a working example of SFTP in PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Dear R. Eric Wheeler,

I just can't get the first approach to work (ssh2_connect, ssh2_auth_pubkey_file, ssh2_sftp, copy,

using either of these exact wrappers (6 is the ssh2_stfp resource):

ssh2.sftp://6/test.txt

or

ssh2.sftp://6/public_html/test.txt

With the test.txt file existing in both the document root and public_html directories on the remote computer, the file_exists function keeps returning false even though I added a call to clearstatcache. My PHP.ini file has wrappers enabled and the SSH2 extension is installed.

And the copy function is even worse: it times out in the browser.

The second approach works successfully (ssh2_connect, ssh2_scp_send).

If you can't help me with with the first approach, I'll drop it. But I would like to offer my readers both alternatives.

David



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux