PHP Classes

File: readme.md

Recommend this page to a friend!
  Classes of Muhammad Umer Farooq   PHP SFTP Library   readme.md   Download  
File: readme.md
Role: Documentation
Content type: text/markdown
Description: Documentation
Class: PHP SFTP Library
Access FTP and SFTP servers to transfer files
Author: By
Last change:
Date: 6 years ago
Size: 557 bytes
 

Contents

Class file image Download

PHP-FTP-Class

PHP FTP is a simple and convenient FTP adapter for processing FTP requests via PHP.

BASIC USAGE

Create a new directory, change into it and upload a file

$ftp = new FTP('ftp.myserver.com', 'username', 'password',false);

$ftp->mkdir('somedir');
$ftp->chdir('somedir');

$ftp->put(['my_local_file.html','my_local_file2.html']);

Download file from a directory

$ftp = new FTP('ftp.myserver.com', 'username', 'password',false);

$ftp->chdir('somedir');

$ftp->get('my_local_file.html', 'file_on_server.html');