Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.php > #16875
| From | "J.O. Aho" <user@example.net> |
|---|---|
| Newsgroups | comp.lang.php |
| Subject | Re: Connection between client and server |
| Date | 2016-07-24 10:44 +0200 |
| Message-ID | <dvjdeoFrv02U1@mid.individual.net> (permalink) |
| References | <7685ed66-ee5e-46a0-aeba-0bd9b408d286@googlegroups.com> |
On 07/24/16 09:51, bit-naughty@hotmail.com wrote: > If I have a page which say, echo's something, and then does stuff on the server side, eg. putting something inside a database, say - I was thinking of *FIRST* doing the echo'ing, and THEN doing the "stuff" - which obviously means that if the server crashes between the echo and the stuff, the task won't get done. But I'm also wondering what happens if someone clicks off that tab or closes the browser as soon as they see the text (whatever's been echo'd) - will that kill the process on the server side? Before it's completed whatever it was supposed to do? How do I prevent this? The process should in most cases execute to the end, but still the best practice is to execute things first and then give the output, as this way you can tell that something went wrong and ask the user to redo the post. -- //Aho
Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Connection between client and server bit-naughty@hotmail.com - 2016-07-24 00:51 -0700 Re: Connection between client and server "J.O. Aho" <user@example.net> - 2016-07-24 10:44 +0200 Re: Connection between client and server gordonb.88fwl@burditt.org (Gordon Burditt) - 2016-07-24 04:14 -0500
csiph-web