PHP: how to stop ignore_user_abort, is it a good solution for long run program

Posted by user192344 on Stack Overflow See other posts from Stack Overflow or by user192344
Published on 2010-02-02T10:14:52Z Indexed on 2010/03/22 15:01 UTC
Read the original article Hit count: 303

Filed under:

let say i have send email program which need to run arround 7 hours. but i cant open the browser for 7 hours

beside cronjob,

ignore_user_abort() will it be a solution?

will the script stop when all email has sent and the program has finish the loop?

or it will keep eating the server memory?

some people said u may need to add some output at the end of the program to avoid the program run forever?

and some people also said echo a litte bit string will not stop the script, but has to use ob_flush, any example for this?

© Stack Overflow or respective owner

Related posts about php