I have an application that uses the meta refresh mode, however, having searched the net I can't seem to find anything that tells me whether I can refresh a page using PHP alone.
I have 2 PHP pages one where the user can enter information which is written to a MySql database, the other that reads the database and displays the contents to the clients screen. At the moment the only way I can do this is by using a meta refresh every couple of seconds.
I would ideally like to loop the second page and just display what I've read from the database so far. This would mean that the only time this page would complete is when the user closes the window.
This is essentially a small chat application, that should give you a better idea of what I am trying to achieve.
I have 2 PHP pages one where the user can enter information which is written to a MySql database, the other that reads the database and displays the contents to the clients screen. At the moment the only way I can do this is by using a meta refresh every couple of seconds.
I would ideally like to loop the second page and just display what I've read from the database so far. This would mean that the only time this page would complete is when the user closes the window.
This is essentially a small chat application, that should give you a better idea of what I am trying to achieve.
Comment