Hi all,
I need to do two PHP operations in one page of output. The first is fast and produces output for the user... fine. The second, however, can take a minute or longer and does not need to produce output to the user. Ideally it will run at the end of the page (after close html tag), close the HTTP connection and do it's stuff (time consuming network and DB stuff). This way the user can go on his merry way. However, there seems to be no way to close the client connection. I could flush() everything and let the browser sit there waiting for more stuff, but it is not great for all browsers, and isn't an elegant solution.
I think I could also call an external PHP script vis "system()" but this is also inelegant, slower, and besides we don't have command line php on my host.
Any solutions?
Thanks,
Garth