Home > php教程 > php手册 > php header()实现程序404错误状态

php header()实现程序404错误状态

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-13 09:56:06
Original
784 people have browsed it

本文章来告诉你如何利用程序实现php 404信息的发送,有需要的同学可以参考一下下哈。

针对apache配置中的ErrorDocument 404 /404.php功能,把nginx配置中的

 代码如下 复制代码

error_page 404 /404.php;

改成

 代码如下 复制代码

error_page 404 = /404.php;


php

header实现404无法找到页面

 代码如下 复制代码
Header("HTTP/1.1 404 Not Found");
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template