PHP Classes

Supervisor of filling of folders: Monitor the size of files in file

Recommend this page to a friend!
  Info   View files View files (2)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 325 This week: 1All time: 7,192 This week: 560Up
Version License PHP version Categories
supfillfol 0.2.0BSD License5.0PHP 5, System information, Files and ...
Description 

Author

This class can be used to monitor the size of files in file.

It can traverse a given directory recursively and account the size that files are taking in the disk.

The class can repeat the process after a given period of time and the it display a chart using the Google Chart API to show the current disk space usage and change during the delay time.

En Español:

Cuando Tenemos una web que usan muchos usuarios, necesitamos saber cuanto crecen las carpetas críticas de la misma, por ejemplo , las imagenes y documentos que los usuarios suben a carpetas compartidas, asi mismo si disponemos de un limite para cada usuario de una cantidad específica de bytes sería de gran ayuda tener una alarma que nos indique en cada caso la estimación necesaria para intervenir y aumentar el tamaño de los discos duros, imaginémos una web con millones de usuarios lo importante que esto significa.

Usando la API Google Chart podemos construir interesantes e importantes controles que le favorecerian la visión de lo que está sucediendo en un sitio web a webmaster.

Con un poco de trabajo los usuarios que utilicen esta clase pueden aplicarla a un panel de control mediante AJAX.

Esta Clase envía varios parametros:

$url a monitorear: la cual debe estar en el mismo servidor donde se ejecuta el script.
$width_img y $height_img : las medidas del gráfico para Google Chart
$time: el tiempo o intervalo que de monitoreo.
$max_value: el tamaño critico de referencia para hacer los calculos.

Innovation Award
PHP Programming Innovation award nominee
June 2010
Number 2


Prize: One copy of the Zend Studio
Nowadays, disk space is cheap, but when an application runs out of control it may exhaust the available disk space and make the application unavailable.

This class provides a simple disk space monitoring solution that may be used to prevent greater losses of when an application totally halts.

Manuel Lemos
Picture of Roberto Aleman
  Performance   Level  
Name: Roberto Aleman <contact>
Classes: 19 packages by
Country: Venezuela Venezuela
Age: 49
All time rank: 1391 in Venezuela Venezuela
Week rank: 109 Up2 in Venezuela Venezuela Down
Innovation award
Innovation award
Nominee: 10x

Winner: 1x

  Files folder image Files  
File Role Description
Plain text file index.php Example example
Plain text file Supervisor_of_filling_of_folders.php Class main class

 Version Control Unique User Downloads Download Rankings  
 0%
Total:325
This week:1
All time:7,192
This week:560Up