开发者

does closing of web browser window cause the termination of php script?

开发者 https://www.devze.com 2023-01-24 03:11 出处:网络
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.

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消