Hmmm... thanks for the help but I'm still not getting it to run. Is there a preferred way to refer to the database on the server? Some how I'm just not getting data written to the file (though the exact same script works just within the confines of my own computer). Also, I'd prefer to save the database somewhere where it can't be accessed by the general public -- is this possible?
It can go in the same directory as your form. I'm using sqlite with php and this is how I connect to my database.
<?php
$loadavg_array = explode(" ", file_get_contents("/proc/loadavg"));
$new_load = $loadavg_array[2];
$day = date("D");
$date = date("d");
$month = date("M");
$year = date("Y");
$time = time();
# open DB
$db = sqlite_open("load_db");
$sql = "INSERT INTO serverload
(day, date, month, year, time, load)
VALUES ('$day', $date, '$month', $year, $time, $new_load)";
# execute query
sqlite_query($db, "$sql");
?>