Page 1 of 1

Need Help with the PHP script

Posted: Mon Jul 19, 2010 8:42 am
by randev
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.

Re: Need Help with the PHP script

Posted: Mon Jul 19, 2010 6:39 pm
by eruna
If your Unix script could write the information to a php configuration file, you could include the information.