|
Posted by Bent Stigsen on 06/03/06 14:02
S. C. Jeong wrote:
> I want to send 'eof' kind of message after some processes. Die or exit
> cannot be used because there are some more processes to complete, but
> nothing major to users.
>
> <?php
> phpinfo ();
> //i want to finish the process here!!
> //flush () //? doesnt work?
> sleep (10); // mimic of (not)complicated process
> ?
There might be many reasons why it doesn't work, as mentioned in the
manual along with hints of what to do.
http://php.net/manual/en/function.flush.php
Depending on how it is supposed to work, you might want to use
"ignore_user_abort", in case the user decides to go somewhere else
before your subsequent process finishes.
/Bent
Navigation:
[Reply to this message]
|