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: This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details. You should have received a copy of the GNU Lesser General Public License along with this library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Tags:
Includes:
require_once('Net/SSH2.php') [line 58]
Include Net_SSH2
NET_SFTP_LOCAL_FILE [line 92]
NET_SFTP_LOG_COMPLEX [line 71]
NET_SFTP_LOG_SIMPLE [line 67]
NET_SFTP_STRING [line 96]
|