Procedural File: SFTP.php
Source Location: /lib/3rdParty/phpseclib/Net/SFTP.php
Classes:
Net_SFTP
Pure-PHP implementations of SFTP.
Page Details:
Pure-PHP implementation of SFTP.
PHP versions 4 and 5 Currently only supports SFTPv3, which, according to wikipedia.org, "is the most widely used version, implemented by the popular OpenSSH SFTP server". If you want SFTPv4/5/6 support, provide me with access to an SFTPv4/5/6 server. The API for this library is modeled after the API from PHP's FTP extension. Here's a short example of how to use this library: <?php
include('Net/SFTP.php');
if (!$sftp->login('username', 'password')) {
exit('Login Failed');
}
echo $sftp->pwd() . "\r\n";
$sftp->put('filename.ext', 'hello, world!');
?>
LICENSE: Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Tags:
Includes:
require_once('Net/SSH2.php') [line 60]
Include Net_SSH2
NET_SFTP_LOCAL_FILE [line 94]
NET_SFTP_LOG_COMPLEX [line 73]
NET_SFTP_LOG_SIMPLE [line 69]
NET_SFTP_STRING [line 98]
|