Location: PHPKode > scripts > Folder Space Folder Quota with Percent Bar > folder-space-folder-quota-with-percent-bar/example_vertical.php
<?php

require("folder_space.class.php");


$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'=>'Folder Disk Space',  //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
);
$folder = new handle();
$folder->create($data);

$data2 = array(
'total'=>3072,  //3kb  //quota enter in byte format
'max_height'=>250,   //Set your Graphic height (px).
'max_width'=>10,    //Set your Graphic width (px).
'axis'=> 'vertical', //horizontal
'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);

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