Need Help with the PHP script

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
randev
Forum Newbie
Posts: 4
Joined: Mon Jul 19, 2010 8:37 am

Need Help with the PHP script

Post 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.
eruna
Forum Newbie
Posts: 17
Joined: Mon Jun 28, 2010 2:02 pm

Re: Need Help with the PHP script

Post by eruna »

If your Unix script could write the information to a php configuration file, you could include the information.
Post Reply