Location: PHPKode > scripts > PHP gauge > php-gauge/gauge.php
<?php
include ('gauge.class.php');

$value  = $_GET['value'];
$size   = $_GET['size'];
$text   = $_GET['text'];
$green  = $_GET['green'];
$yellow = $_GET['yellow'];
$min    = $_GET['min'];
$max    = $_GET['max'];
$span   = $_GET['span'];

$gauge = new gauge();
$gauge->setPos($value);
$gauge->setImagesize($size);
$gauge->setLegend($text);
$gauge->setGreen($green);
$gauge->setYellow($yellow);
$gauge->setMax($max);
$gauge->setMin($min);
$gauge->setSpan($span);
$gauge->plot();

?>
Return current item: PHP gauge