PHP Classes

PHP FTP Manager: Transfer files and manipulate directories via FTP

Recommend this page to a friend!
  Info   View files Example   View files View files (22)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 476 This week: 1All time: 5,972 This week: 560Up
Version License PHP version Categories
php-ftp-manager 1.0.0GNU General Publi...5Networking, PHP 5, Files and Folders
Description 

Author

This package can transfer files and manipulate directories via FTP.

There is one base class that establish connections to a given FTP server reading the connection options from a INI configuration file.

There is a sub-class that can perform operations related with directories like getting the path of the current remote FTP server directory, changing the current directory to a given path, retrieve the listing of files and directories of the current remote directory, create new remote directories, delete remote directories.

Another sub-class can perform operations with files like downloading a file from the current remote directory in ASCII or binary mode.

Picture of Samuel Adeshina
  Performance   Level  
Name: Samuel Adeshina is available for providing paid consulting. Contact Samuel Adeshina .
Classes: 19 packages by
Country: Nigeria Nigeria
Age: 25
All time rank: 5252 in Nigeria Nigeria
Week rank: 106 Up6 in Nigeria Nigeria Down
Innovation award
Innovation award
Nominee: 7x

Winner: 1x

Example

<?php
   
require_once("ftp.php");
   
$myFtp = new ftp();
   
//downloading a file from the ftp server
   
$file = $myFtp->download("README.txt", "", FTP_ASCII);
    echo
$file;
   
//printing the name of the current working directory
   
$nameOfCurrentDirectory = $myFtp->manipulate_directory("name", "");
    echo
$nameOfCurrentDirectory;
   
//printing the content (files and folders) of the current directory
   
$content = $myFtp->manipulate_directory("display", ".");
    foreach (
$content as $member)
    {
        echo
$member."<br/>";
    }
   
//changing the current directory to the public folder
   
$change = $myFtp->manipulate_directory("goto", "/public");
    echo
$change;
?>


Details

PHP-FTP-Manager

The PHP FTP Manager Package (class) is intended/built to be used as a wrapper for accessing and manipulating data on FTP Servers. It extends the PHP FTP class and combines all the functions for connecting to and manipulating files and directories such as ftp_mkdir(), ftp_connect, ftp_login, ftp_get and so on into a single class.


  Files folder image Files  
File Role Description
Files folder imagedoc (2 files, 3 directories)
Plain text file ftp-connect.php Class First Commit
Plain text file ftp-directory.php Class First Commit
Plain text file ftp.php Class First Commit
Accessible without login Plain text file LICENSE Lic. First Commit
Accessible without login Plain text file parameters.ini Data First Commit
Accessible without login Plain text file README.md Data First Commit
Accessible without login Plain text file test.php Example First Commit

  Files folder image Files  /  doc  
File Role Description
Files folder imagecss (1 file)
Files folder imageimages (6 files)
Files folder imagejs (6 files)
  Accessible without login HTML file index.html Doc. First Commit
  Accessible without login Plain text file tooplate_style.css Data First Commit

  Files folder image Files  /  doc  /  css  
File Role Description
  Accessible without login Plain text file coda-slider.css Data First Commit

  Files folder image Files  /  doc  /  images  
File Role Description
  Accessible without login Image file onebit_08.png Data First Commit
  Accessible without login Image file tooplate_body.jpg Data First Commit
  Accessible without login Image file tooplate_main.png Data First Commit
  Accessible without login Image file tooplate_menu.png Data First Commit
  Accessible without login Image file tooplate_menu_last.png Data First Commit
  Accessible without login Image file tooplate_site_header.png Data First Commit

  Files folder image Files  /  doc  /  js  
File Role Description
  Accessible without login Plain text file coda-slider.js Data First Commit
  Accessible without login Plain text file jquery-1.2.6.js Data First Commit
  Accessible without login Plain text file jquery.easing.1.3.js Data First Commit
  Accessible without login Plain text file jquery.localscroll-1.2.5.js Data First Commit
  Accessible without login Plain text file jquery.scrollTo-1.3.3.js Data First Commit
  Accessible without login Plain text file jquery.serialScroll-1.2.1.js Data First Commit

 Version Control Unique User Downloads Download Rankings  
 100%
Total:476
This week:1
All time:5,972
This week:560Up