文字

http_send_status

(PECL pecl_http >= 0.1.0)

http_send_statusSend HTTP response status

说明

bool http_send_status ( int $status )

Send HTTP status code.

参数

status

HTTP status code (100-599)

返回值

成功时返回 TRUE , 或者在失败时返回 FALSE

参见

  • 如使用 PHP 5.1.0 及以后版本中为 HttpResponse 类。

用户评论:

[#1] zweibieren at yahoo dot com [2015-04-27 15:26:14]

See also http_response_code.  It performs much the same function; and its notes describe response codes in detail.

上一篇: 下一篇: