Re: Multithreading in PHP

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

 



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.".

<?php
//Code to send some output to user
...
...
...
echo "Email will be sent to you shortly";
//Time to send email
//Send all other output before this line
ob_flush();
flush();

//Code to send email
//echo "Email sent";

--

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