Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<RRDUpdater::__constructScoutAPM>
^RRDUpdaterLast updated: Mon, 26 Oct 2026

RRDUpdater::update

(PECL rrd >= 0.9.0)

RRDUpdater::update — Update the RRD database file

Description

public function RRDUpdater::update(array $values, string $time = time() ): bool

Updates the RRD file defined via RRDUpdater::__construct(). The file is updated with a specific values.

Parameters

values

Data for update. Key is data source name.

time

Time value for updating the RRD with a particular data. Default value is current time.

Return Values

Returns true on success or false on failure.

Errors/Exceptions

Throws a Exception on error.

Examples

Example #1 RRDUpdater::update() examples

<?php
$updator = new RRDUpdater("speed.rrd");
//updates the data source "speed" with value "12411"
//for time defined by timestamp "920807700"
$updator->update(array("speed" => "12411"), "920807700");
?>

<RRDUpdater::__constructScoutAPM>
^RRDUpdaterLast updated: Mon, 26 Oct 2026