Mobile Billing Meter

Billing Meter bit.ly link or Billing Meter tech0x20 link.

This isn't perfect. First of all, some connections are just too slow for a constant refresh rate of less than 20-30 seconds. Secondly, I think many mobile browsers have a refresh cut-off at which point they will ask you if you really want to keep refreshing.

The first page, index.php, allows you to enter parameters:

Billing Meter












Billing Rate per Hour
Update Interval (in seconds)
Press Submit to start the counter.


The second file, meter.php, does the display, calculation and refresh:
";

$netseconds = time()-$_SESSION["STARTTIME"];
$cost = sprintf("%10.2lf", round($_SESSION["BILLINGRATE"]*((double)$netseconds)/3600.0,2));
?>

Billing meter

Time spent:

".$time_counter[$i]."

";
}
?>

Your bill:

".$cost[$i]."

";
}
}
?>

$