Documentation

SFTP.php

Pure-PHP implementation of SFTP.

PHP version 5

Currently only supports SFTPv2 and v3, 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:

login('username', 'password')) { exit('Login Failed'); } echo $sftp->pwd() . "\r\n"; $sftp->put('filename.ext', 'hello, world!'); print_r($sftp->nlist()); ?>
Tags
category

Net

author

Jim Wigginton terrafrost@php.net

copyright

2009 Jim Wigginton

license

http://www.opensource.org/licenses/mit-license.html MIT License

link
http://phpseclib.sourceforge.net

Table of Contents

Classes

SFTP
Pure-PHP implementations of SFTP.

Constants

NET_SFTP_QUEUE_SIZE  = 32
NET_SFTP_UPLOAD_QUEUE_SIZE  = 1024

Constants

NET_SFTP_QUEUE_SIZE

public mixed NET_SFTP_QUEUE_SIZE = 32

NET_SFTP_UPLOAD_QUEUE_SIZE

public mixed NET_SFTP_UPLOAD_QUEUE_SIZE = 1024

        
On this page

Search results