duangai1941 2013-11-08 11:53
浏览 18

有没有办法强制服务器停止执行脚本?

I am sending an AJAX get() request and I want to be able to abort it. Using the AJAX abort() I can force the client to stop listening to the response. Is there a way to make the server stop executing the php script?

  • 写回答

1条回答 默认 最新

  • douba9020 2013-11-08 11:57
    关注

    You can use the function connection_aborted() to detect if the client is still connected and then die(), exit() or whatever if the client has.

    评论

报告相同问题?