tokkee.org
Code
projects
/
rrdtool-all.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
make sure gcc-4.0 does not optimize our tests away :-)
[rrdtool-all.git]
/
contrib
/
php3
/
examples
/
rrd_update.php
1
<?
2
3
dl("/tmp/php3_rrdtool.so");
4
5
##
6
## demonstration of the rrd_update() command
7
##
8
9
$ret = rrd_update("/some/file.rrd", "N:1245:98344");
10
11
if ( $ret == -1 )
12
{
13
$err = rrd_error();
14
echo "ERROR occurred: $err\n";
15
}
16
/* else rrd_update() was successful */
17
18
19
?>