Re: Multithreading in PHP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux