我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

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

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?

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.

近期文章

  • Foreach文件位于根目录和所有子目录中
  • php中的变量变量使用WAMP服务器问题
  • 使用PDO和MySql一样使用%%
  • Codeigniter 2级URL
  • 从值重命名数组
  • .htaccess url友好的PHP
  • php $ _POST没有发送全部价值
  • array_merge多维数组
  • 如何使用php减去mysql中的数量
  • android按钮的渐变颜色效果
  • 如何将PHP ID值发送到moodle中的Jquery
  • 从网页中的2张图片创建新图片
  • 如果找到preg匹配排除该字符串php
  • 我想在我的网站上添加一些检测功能; 这些好选择吗? [关闭]
  • 发送带字符串的javascript数组到php动作
  • 在页面加载和表单上显示数据库结果使用通配符提交[关闭]
  • 如何在javascript函数中使用php里面的javascript变量
  • PHP - 在一个类中使用公共函数,但在扩展类中不使用
  • 什么是PHP脚本的最大文件大小[关闭]
  • 试图通过php数据库连接共享来理解postgresql

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华