/* Supervisor_of_filling_of_folders 0.2.0 by Roberto Aleman, email@example.com,, BSD Licence
When we have a website used by many users, we need to grow as critical in the same folder, for example,
images and documents that users upload to shared folders, so it if we have a limit for each user on a
specific amount of bytes would be helpful to have an alarm that tells us the estimate in each case
necessary to intervene and increase the size of hard drives, imagine a website with millions of users
how important this means.
Using the Google Chart API can build interesting and important controls that would encourage the
vision of what is happening on a web site to webmaster.
With a little work, the users of this class may apply to a control panel using AJAX.
This class sends several parameters:
$url to monitor: which should be on the same server running the script.
$width_img and $height_img : chart measures for Google Chart
$time: the time or interval monitoring.
$max_value: critical size reference for the calculations.
$fillfolder = new Supervisor_of_filling_of_folders();
$fillfolder ->supfillfolder("youfolder/",400,250,2,5368709120);// parameters $url, $width_img, $height_img, $interval,$max_value in bytes, example 5368709120 = 5 Gb
echo "<meta http-equiv='refresh' content='2' />"; // use same interval value, you can modifying and apply the AJAX technology