Re: Closing a connection to browser without exiting the script
| From: | Richard Lynch | Date: | Thu, 02 Nov 2006 18:01:00 +0000 |
| Subject: | Re: Closing a connection to browser without exiting the script | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-244096@lists.php.net to get a copy of this message | ||
On Wed, November 1, 2006 3:24 pm, David Négrier wrote:
> I'm having a somewhat unusual question here, and I cannot find any way
> to solve it.
There is no way to do precisely what you are describing.
The best thing to do, imho, is to have the PHP script queue up
something in a datbase, text file, or staging directory.
Then a cron job (or "Scheduled Task" in Windows) can run through the
queue, file, or directory, and process the items, totally independent
of the browser script.
It's a lot less effort than it sounds like, and de-coupling the
"request" for the task to be done completely from doing the task
simplifies things, in the long run.
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?