Re: [PHP] Multithreading in PHP

2009-03-18 Thread Alpár Török
2009/3/17 Manoj Singh : > Hi Alpar, > > Thanks for reply. > > Actually the form is submitted through ajax request and the validation is > checking on the server side. So if any error occurs on submission of form, > then we are displaying the errors to the user. And is there is no error, > then the

Re: [PHP] Multithreading in PHP

2009-03-17 Thread Sudheer Satyanarayana
Manoj Singh wrote: Hi Sudheer, Can you please put more focus or sample code for the second option which you have suggested "Send the email after you flush the output.". http://binaryvibes.co.in, Tech stuff: http://techchorus.net, Personal: http://sudheer.net -- PHP General Mailing List (h

Re: [PHP] Multithreading in PHP

2009-03-17 Thread Manoj Singh
Hi Sudheer, Can you please put more focus or sample code for the second option which you have suggested "Send the email after you flush the output.". Regards, Manoj On Tue, Mar 17, 2009 at 7:28 PM, Sudheer Satyanarayana < sudhee...@binaryvibes.co.in> wrote: > Manoj Singh wrote: > >> Hi Guys, >>

Re: [PHP] Multithreading in PHP

2009-03-17 Thread Sudheer Satyanarayana
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 clie

Re: [PHP] Multithreading in PHP

2009-03-17 Thread Jo�o C�ndido de Souza Neto
My suggestion is that you can start a second ajax as soon as the response about validating data is returned to process everithing you need and so your user wont wait until the process is finished. João Cândido "Manoj Singh" escreveu na mensagem news:3859a530903170639m6c2af2b2s941446a31103c.

Re: [PHP] Multithreading in PHP

2009-03-17 Thread Alpár Török
2009/3/17 Manoj Singh : > 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 respo

Re: [PHP] Multithreading in PHP

2009-03-17 Thread Manoj Singh
Hi Alpar, Thanks for reply. Actually the form is submitted through ajax request and the validation is checking on the server side. So if any error occurs on submission of form, then we are displaying the errors to the user. And is there is no error, then the submitted page started processing. So

[PHP] Multithreading in PHP

2009-03-17 Thread Manoj Singh
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 proce