PHP Classes

PHP File Class: Perform different operations to manage files

Recommend this page to a friend!
  Info   View files Documentation   View files View files (7)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 112 All time: 9,525 This week: 129Up
Version License PHP version Categories
php-file-class 1.0The PHP License5PHP 5, Files and Folders, Compression


This class can perform different operations to manage files.

It can take the names of the files that need to be manipulated and perform several operations types. Currently, it can:

- Read a given file
- Add a new file to the list of files to be processed by the class
- Adds new protocols to the list of supported protocols by class
- Changes the owner of a directory recursively
- Delete files according to a criterion
- Checks if a path corresponds to a local file that is not associated with any remote protocol
- Checks if a path matches a directory
- Checks if a path matches a file
- Returns the file type
- Save a text in a file
- Clears special characters in filenames
- Creates a directory structure
- Move a directory
- Deletes a directory that may contain files and other directories
- Unzip a ZIP file
- Upload a file to another server

In Portuguese:

- Lê um dado ficheiro
- Adiciona novo ficheiro na lista de ficheiros a processar pela classe
- Adiciona novo protocolos na listas de suportados protocolos pela classe
- Muda o dono de uma directoria de modo recursivo
- Apaga ficheiros de acordo com um critério
- Verifica se um caminho corresponde a um ficheiro local que não está associado a nenhum protocolo remoto
- Verifica se um caminho corresponde a uma directoria
- Verifica se um caminho corresponde a um ficheiro
- Devolve o tipo de ficheiro
- Guarda um texto em um ficheiro
- Limpa os caracteres especiais nos nomes dos ficheiros
- Cria um estrutura de directorios
- Move uma directoria
- Apaga um directório que pode conter ficheiros e outros directórios
- Descompactar um ficheiro ZIP
- Faz o envio de um ficheiro para outro servidor

Picture of António Lira Fernandes
Name: António Lira Fernandes <contact>
Classes: 10 packages by
Country: Portugal Portugal
Age: ???
All time rank: 249536 in Portugal Portugal
Week rank: 578 Up14 in Portugal Portugal Up
Innovation award
Innovation award
Nominee: 3x

Winner: 2x

// -------------------------------------------------------------------------------- // @version 1.5 - readme.txt // -------------------------------------------------------------------------------- // License GNU/LGPL - March 2021 // @author António Lira Fernandes - // // -------------------------------------------------------------------------------- 0 - Sommaire ============ 1 - Introduction 2 - What's new 3 - Corrected bugs 4 - Known bugs or limitations 5 - License 6 - Warning 7 - Documentation 8 - Author 9 - Contribute 1 - Introduction ================ This class handles all file operations. It presents several methods for manipulating the file system. The methods are in Portuguese. Documentation can be found at 2 - What's new ============== - No new feature 3 - Corrected bugs ================== 4 - Known bugs or limitations ============================= 5 - License =========== Is released under GNU/LGPL license. This library is free, so you can use it at no cost. I will also appreciate that you send me a mail (, just to be aware that someone is using File. For more information about GNU/LGPL license : 6 - Warning ================= This library and the associated files are non commercial, non professional work. It should not have unexpected results. However if any damage is caused by this software the author can not be responsible. The use of this software is at the risk of the user. 7 - Documentation ================= A documetação pode ser encontrada em 8 - Author ========== This software was written by António Lira Fernandes ( on its leasure time. 9 - Contribute ============== If you want to contribute to the development of FILE, please contact
  Files folder image Files  
File Role Description
Files folder imagedocumentation (1 file)
Files folder imagepclzip (4 files)
Plain text file file.php Class Class source
Accessible without login Plain text file README.txt Doc. Documentation

  Files folder image Files  /  documentation  
File Role Description
  Accessible without login HTML file index.html Doc. Documentation

  Files folder image Files  /  pclzip  
File Role Description
  Accessible without login Plain text file gnu-lgpl.txt Doc. Documentation
  Plain text file pclzip.lib.php Class Class source
  Plain text file PclZip.php Class Class source
  Accessible without login Plain text file readme.txt Doc. Documentation

 Version Control Unique User Downloads Download Rankings  
This week:0
All time:9,525
This week:129Up