Net_FTP

Table des matières
Constantes -- constantes prédéfinies
Net_FTP::Net_FTP() -- constructor
Net_FTP::connect() -- connects to a given FTP server
Net_FTP::disconnect() -- disconnects from the FTP server
Net_FTP::login() -- S'identifier sur le serveur FTP en connection
Net_FTP::cd() -- changes le répertoire sur le serveur.
Net_FTP::pwd() -- returns the directory on the server you are currently in.
Net_FTP::mkdir() -- creates a new directory.
Net_FTP::execute() -- executes a command on the server.
Net_FTP::mdtm() -- returns the last modification date of a file.
Net_FTP::size() -- returns the size in bytes of a file.
Net_FTP::ls() -- returns the listing of a directory in a specified way.
Net_FTP::rm() -- deletes a file or directory.
Net_FTP::get() -- download a file to the computer your script runs on.
Net_FTP::put() -- upload a file to the FTP server.
Net_FTP::getRecursive() -- download a whole directory to the computer your script runs on.
Net_FTP::putRecursive() -- upload a whole directory to the FTP server.
Net_FTP::checkFileExtension() -- check extensions.ini for the transfermode of a specific file.

Net_FTP fournit une communication plus comfortable avec les serveurs FTP. Il fournit principalement un wrapper OO des fonctions FTP intégrées à PHP, ajoutant quelques fonctionnalités manquantes comme les téléchargements/envois récursifs de dossiers complets, ainsi que leur suppression. Les possibilités de la liste des dossiers sont également étendus pour gérer de façon bien structurée la liste des fichiers et/ou dossiers.

Net_FTP works fine for it's functionality, which will be extended by features like recursive filepermission change (over SITE command), different ways of dirlistings, Windows support and more. Another idea is to implement a fallback for the PHP functions using sockets.