does closing of web browser window cause the termination of php script?
I have a special php script that I call from a browser. It does lots of things and it runs for about 15mins. It does stream back some results.
My questi开发者_如何学编程on is what happens if I close the browser windows? Is the php script terminated? If yes, can I make it somehow not to be affected when the browser window is closed?
You can use ignore_user_abort to tell PHP to keep running even when the connection is broken.
精彩评论