PHP ignore_user_abort() 函数

PHP 教程 · 2019-01-27 13:57:29

实例

设置为 false(默认)- 与客户机断开会终止脚本的执行:

<?php
ignore_user_abort();
?>

上面代码的输出如下:

0

定义和用法

ignore_user_abort() 函数设置与远程客户机断开是否会终止脚本的执行。

提示:您可以不带参数地调用这个函数,来返回当前的设置。

语法

ignore_user_abort(setting)

参数 描述
setting 可选。如果设置为 TRUE,则忽略与用户的断开(脚本将继续运行)。默认情况下是设置为 FALSE,与客户机断开会导致脚本停止运行。

技术细节

返回值: 返回 user-abort 设置的之前的值(一个布尔值)。
PHP 版本: 4+

点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html

查看所有标签

Learn Python the Hard Way

Learn Python the Hard Way

Zed Shaw / Example Product Manufacturer / 2011

This is a very beginner book for people who want to learn to code. If you can already code then the book will probably drive you insane. It's intended for people who have no coding chops to build up t......一起来看看 《Learn Python the Hard Way》 这本书的介绍吧!

Base64 编码/解码
Base64 编码/解码

Base64 编码/解码

URL 编码/解码
URL 编码/解码

URL 编码/解码

UNIX 时间戳转换
UNIX 时间戳转换

UNIX 时间戳转换