I hate giving this answer as I'm almost always proven wrong.... but no, not really.
You can do all sorts of tricks with javascript to query the server in the background every so many seconds and find out if you should display the warning.... but there's no way for the server to just alert a client like that with HTTP and PHP.
You can start writing fancier applications which just use the browser as a GUI interface, but communicate with different protocols which will accomplish what you want however.
0nce a page has been loaded by a client the conection between server and client is closed. I had thought of an alternative solution to applets or sockets. So new data on server is downloaded by the client by refreshing html wherever server command it
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.