Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

1gurucoder/codeigniter-sftp

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
7 Commits
 
 
 
 
 
 

Repository files navigation

codeigniter-sftp

Overview

SFTP library for CodeIgniter

This is a Library for CodeIgniter that uses sFTP. I've tried to keep the usage the exact same as the FTP library that is included with CodeIgniter.

Requirements

  1. PHP 5.2
  2. PECL SSH2 Extension
  3. CodeIgniter 2.1.4+

Installation

Drop this file into the ./application/libraries/ folder in your CodeIgniter installation.

Usage

This lib has the same methods as the CodeIgniter FTP Class.

Example (username/password)

$this->load->library('sftp');

$config['hostname'] = 'ssh.example.com';
$config['username'] = 'your-username';
$config['password'] = 'your-password';

$this->sftp->connect($config);

$this->sftp->upload('/local/path/to/myfile.html', '/public_html/myfile.html', 'ascii', 0775);

$this->sftp->close();

About

SFTP library for CodeIgniter

Resources

License

Stars

0 stars

Watchers

1 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.