PHP/mySQL
Does anybody know how to refresh php scripts individually? My intranet site has certain php scripts, all on the same page, that need to be refreshed every so often so the most current data can be viewed.
The workstations that the site will be on will not have the luxury of having a keyboard and mouse...they all have touch screens. I need the indivudual scripts to auto-refresh in a pre-determined amount of time. The php scripts feed off of a mySQL database. Thanks |
u may use a javascript refresh() function in your script. make a google search on that. u'll find code examples that refresh the display given an amount of time...
cheers |
Try this
<? header( 'refresh: 5; url=/url_to_refresh/' ); ?> |
Or stick this in the page's HTML header:
Code:
<meta http-equiv="refresh" content="60;URL=url.php"> |
those methods do work, but some scripts need to update very frequently. If the screen flickers each time a refresh is done, it may give me a seizure.
There has to be a way to have some scripts on a page refresh, while others do not. individual is the key. |
First...
How namy scripts total? How frequently does the fastest one need to refresh? |
we are looking at roughly 15-20 scripts per papge at maximum, with, at the worst, a script needing an update from the database every second or less. I really need the option of having my scripts update at any interval I need. One script needs to be pretty much continuously updated.
|
I'm not a real big fan of frames but you can try putting each script in it's own frame and use the
Code:
<meta http-equiv="refresh" content="60;URL=url.php"> |
All times are GMT -5. The time now is 05:31 PM. |