PHP Classes

Advanced FTP client class: FTP client in pure PHP

Recommend this page to a friend!
  Info   View files View files (5)   DownloadInstall with Composer Download .zip   Reputation   Support forum (24)   Blog    
Ratings Unique User Downloads Download Rankings
StarStarStarStar 69%Total: 14,303 All time: 71 This week: 146Down
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: 286 Down3 in Ukraine Ukraine Equal

  Files folder image Files  
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

 Version Control Unique User Downloads Download Rankings  
 0%
Total:14,303
This week:0
All time:71
This week:146Down
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