Can anyone explain how exactly ignore_user_abort(true); works?

If this does what I think it will, I can start a script running, then let it do it's thing while I browse elsewhere. The script will continue running on the server until it it completed. The script I'm thinking of may take hours to complete as it processes a bunch of pages for me.

Is that right?

If so, should this be at the very start of a script, inside a function, or what?

    It appears from the documentation that all it does is ignore user disconnections. It will not allow you to browse other pages from within the same browser while it works in the background.

      Write a Reply...