Location: PHPKode > scripts > Folder Space Folder Quota with Percent Bar > folder-space-folder-quota-with-percent-bar/example_horizontal.php
<?php
require("folder_space.class.php");

$data = array(
'total'=>3072,  //3 kb  //quota enter byte format
'max_height'=>150,   //Set your Graphic height (px)
'max_width'=>15,    //Set your Graphic width (px).
'axis'=> 'horizontal', //vertical
'bar_name'=>'Folder Disk Space 1', //label
'dir'=> "folder/",  //set your directory url
'empty_color'=>'#DDDDDD', //empty bar color
'full_color'=>'#bb3902',  //full bar color
'float'=>'left',     //css float control left or right
'var_dump'=> false    //var_dump() function for testing.
);
$folder = new handle();
$folder->create($data);

echo "<div style=\"clear:both;\"></div>";

$data2 = array(
'total'=>3072,  //3 kb  //quota enter byte format
'max_height'=>400,    //Set your Graphic height (px)
'max_width'=>4,    //Set your Graphic width (px).
'axis'=> 'horizontal', //vertical
'bar_name'=>'Folder Disk Space 2', //label
'dir'=> "folder/", //set your directory url
'empty_color'=>'#DDDDDD', //empty bar color
'full_color'=>'#3300FF',  //full bar color
'float'=>'left'    //css float control left or right
);
$folder2 = new handle();
$folder2->create($data2);

$data3 = array(
'total'=>3072,  //3 kb  //quota enter byte format
'max_height'=>200,   //Set your Graphic height (px).
'max_width'=>4,    //Set your Graphic width (px).
'axis'=> 'horizontal', //horizontal
'bar_name'=>'Folder Disk Space 3', //label
'dir'=> "folder/", //set your directory url
'empty_color'=>'#DDDDDD',  //empty bar color
'full_color'=>'#3300FF',   //full bar color
'float'=>'left'     //css float control left or right
);
$folder3 = new handle();
$folder3->create($data3);

?>
Return current item: Folder Space Folder Quota with Percent Bar