PHP Classes

File: example_multiple_folder.php

Recommend this page to a friend!
  Classes of Ersin Güvenç   Folder Space Folder Quota with Percent Bar   example_multiple_folder.php   Download  
File: example_multiple_folder.php
Role: Example script
Content type: text/plain
Description: example multiple folder in one bar
Class: Folder Space Folder Quota with Percent Bar
Shows bars with the available space in directories
Author: By
Last change:
Date: 15 years ago
Size: 793 bytes
 

Contents

Class file image Download
<?php

require("folder_space.class.php");

//Check Multiple folder calculate total space and union them in one bar.
//do not add subfolder folder_space can calculate the sub directories..
define('FOLDER1','folder/');
define('FOLDER2','folder2/');

$data = array(
'total'=>3072, //3 kb //quota please enter in byte format
'max_height'=>150, //Set your Graphic height (px).
'max_width'=>4, //Set your Graphic width (px).
'axis'=> 'vertical', //horizontal
'bar_name'=>'Multiple Folder in One Bar', //label
'dir'=> array(FOLDER1,FOLDER2), ## set MULTIPLE folder !!!
'empty_color'=>'#DDDDDD', //empty bar color
'full_color'=>'#bb3902', //full bar color
'float'=>'left' //css float control left or right
);
$folder = new handle();
$folder->create($data);

?>