PHP实现404未找到方法

header 函数 送出 HTTP 协议的标头到浏览器,header参考资料

header ( string string [, bool replace [, int http_response_code]] )
header('HTTP/1.1 404 Not Found');
header('status: 404 Not Found');
include('\404.php');

猜你喜欢

转载自blog.csdn.net/qq_22243075/article/details/129586933