Re: Multithreading in PHP

From: Date: Tue, 17 Mar 2009 13:58:58 +0000
Subject: Re: Multithreading in PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-290175@lists.php.net to get a copy of this message
Manoj Singh wrote:
Hi Guys, I am creating a page which submits the form through Ajax request & the submitted page is sending the mails to n number of users. Now until the mail sends or the page process completed the end user has to wait. Is it possible that server sends the response to the client & then start processing so that the client doesn't have to wait for the server response. I can think of two ways to solve this apart from creating an Ajax request:
1. Queue the emails. Run a cron job to process the queue later. 2. Send the email after you flush the output. -- With warm regards, Sudheer. S Business: http://binaryvibes.co.in, Tech stuff: http://techchorus.net, Personal: http://sudheer.net

« previous php.general (#290175) next »