Code

make sure gcc-4.0 does not optimize our tests away :-)
[rrdtool-all.git] / contrib / php3 / examples / rrd_update.php
1 <?
3  dl("/tmp/php3_rrdtool.so");
5  ##
6  ## demonstration of the rrd_update() command
7  ##
9   $ret = rrd_update("/some/file.rrd", "N:1245:98344");
11   if ( $ret == -1 )
12   {
13       $err = rrd_error();
14       echo "ERROR occurred: $err\n";
15   }
16  /* else rrd_update() was successful */
19 ?>