PHP Classes

Advanced FTP client class: FTP client in pure PHP

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 69%Total: 14,305 This week: 1All time: 71 This week: 47Up
Version License PHP version Categories
pemftp 1GNU Lesser Genera...4.3Networking, Files and Folders
Description 

Author

This is a FTP client class written in PHP, so it does not need any special FTP extensions to work.

The class supports passive and active FTP connections. To work with active connection, there is a special sub-class that uses the PHP sockets extension.

The class can:

- Establish connections within a configured timeout value and automatically authenticate
- Output connection debug information
- Retrieve the FTP protocol features supported by the server
- Change the current directory
- Retrieve directory listings
- Parse the directory listing entry attributes
- Check whether a given file or a directory exists
- Retrieve the size of files, the files timestamp
- Choose the transfer type between ASCII and binary
- Set the permissions mask for files copied to the local server
- Send and receive files
- Resume download from a given file position offset
- Create and remove directories
- Rename, delete and change the permissions of files

Picture of Alexey Dotsenko
Name: Alexey Dotsenko <contact>
Classes: 1 package by
Country: Ukraine Ukraine
Age: 47
All time rank: 1383 in Ukraine Ukraine
Week rank: 50 Up1 in Ukraine Ukraine Up

  Files folder image Files (5)  
File Role Description
Accessible without login Plain text file description.txt Doc. short class methods description
Plain text file ftptest.php Example Example
Plain text file ftp_class.php Class Base class
Plain text file ftp_class_pure.php Class extends base class in order to work without any additional php modules ( can work only in passive mode )
Plain text file ftp_class_sockets.php Class extends base class in order to work using sockets

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:14,305
This week:1
All time:71
This week:47Up
User Ratings User Comments (5)
 All time
Utility:92%StarStarStarStarStar
Consistency:90%StarStarStarStarStar
Documentation:67%StarStarStarStar
Examples:75%StarStarStarStar
Tests:-
Videos:-
Overall:69%StarStarStarStar
Rank:323