Updating PHP script
Posted: Mon Jul 19, 2010 3:18 pm
Hello:
I'm totally new to PHP. I'm trying to generate a bunch of graphs dynamically and I downloaded this free PHP script which looks fine. But my requirement is to dynamically update the numbers in the PHP array. Please see below.
$data1['Total Run Time'] = 800;
$data1['Down Time'] = 219;
$data1['Actual Run Time'] = 500;
$mc1 = new maxChart($data1);
$mc1->displayChart('Operating Rate - Stage 1',0,500,150,true);
echo " <br/>";
.
.
.
$data['6a'] = 9.9;
$data['7a'] = 19.9;
$data['8a'] = 29.9;
$data['9a'] = 69.9;
I don't have any databases configured. I do have an UNIX script which can pull the updated information i.e., total run time, downtime etc.. Now, is there a way I could dynamically update those numbers in to the PHP script.
Please advice.
I'm totally new to PHP. I'm trying to generate a bunch of graphs dynamically and I downloaded this free PHP script which looks fine. But my requirement is to dynamically update the numbers in the PHP array. Please see below.
$data1['Total Run Time'] = 800;
$data1['Down Time'] = 219;
$data1['Actual Run Time'] = 500;
$mc1 = new maxChart($data1);
$mc1->displayChart('Operating Rate - Stage 1',0,500,150,true);
echo " <br/>";
.
.
.
$data['6a'] = 9.9;
$data['7a'] = 19.9;
$data['8a'] = 29.9;
$data['9a'] = 69.9;
I don't have any databases configured. I do have an UNIX script which can pull the updated information i.e., total run time, downtime etc.. Now, is there a way I could dynamically update those numbers in to the PHP script.
Please advice.