With the wonder that is PHP 5, I have determined that my script should be one page and I found that I could make this happen if I do some functions and call them when I need them. Also since there are basically three tables by which we put information on the page I thought I would simply make an array to store the html for each table and then lay it out. This is all well and good, but we are needed to dynamically update the data... I need to start with simple and then I have a complex issue. The weather table needs to auto refresh every 15 minutes, the server list for our streaming servers should refresh every 5 at the most and if someone is veiwing stats on the streams we like that to refresh every 45 seconds. currently this is done with a metadata refresh in each page that loads in a respective frame. The question is "Is there a timer function to do this within a PHP script?"
Question 2: given the code for a button:
Code: Select all
<form method="link" action="stats()">
<input type="submit" value="STATS">
</form>Question 3: the complex part:
We have a clock on the page that we get using
Code: Select all
date(g:i A);On that same question... should we implement JavaScript to refresh the data in the tables... ie call the function every x minutes.
Thanks for your suggestions and help!