Giter Site home page Giter Site logo

puja12 / codeigniter-sftp-library Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ipolar/codeigniter-sftp-library

0.0 0.0 0.0 161 KB

A CodeIgniter sFTP Library - Allows communication to a sFTP server via the CodeIgniter framework

PHP 100.00%

codeigniter-sftp-library's Introduction

CodeIgniter sFTP Library

A CodeIgniter sFTP Library - Allows communication to a sFTP server via the CodeIgniter framework.

Contributors

Many thanks to;

Jlil

tunelko

AchrafSoltani

lavluda

kjj1

Ian Grice

Requirements

  1. PHP 5+
  2. CodeIgniter for 2.x
  3. ssh2 extension for PHP (which in turn needs libssh2)

Usage

Have a look at application/controllers/sftp_test.php for an example of how to connect to a remote sFTP server, as well as a few demo commands you can run.

libssh2 & ssh2 installation on OSX 10.9

Here's an updated guide to installing this extension on OSX 10.9 (Mavericks).

I'm using the default OSX PHP install (5.4.24) that comes pre-installed. This guide also assumes you're using Homebrew as a package manager, and have wget installed.

This is very similar to the process on this gist.

  1. Install libssh2;

brew install libssh2

  1. Install ssh2;

wget http://pecl.php.net/get/ssh2-0.11.3.tgz

tar -zxvf ssh2-0.11.3.tgz

cd ssh2-0.11.3

phpize

./configure

make

  1. Copy your newly compiled extension (ssh2.so) into your PHP extensions directory.

sudo cp modules/ssh2.so /usr/lib/php/extensions/no-debug-non-zts-20100525

  1. Add the extension to the php.ini. Just add the following text to the php.ini file;

extension=ssh2.so

  1. Restart apache and run php info to see if the extension has been loaded;

php -i | grep ssh2

You should be good to go from here!

The main thing is that libssh2, ssh2 and php are all the same architecture (32 or 64bit).

codeigniter-sftp-library's People

Contributors

ipolar avatar achrafsoltani avatar jlil avatar lavluda avatar tunelko avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.