+
95
-

php中http_response_code(404)与header('HTTP/1.1 404 Not Found')header("status: 404 Not Found")区别?

php

请问php中http_response_code(404)与header('HTTP/1.1 404 Not Found')header("status: 404 Not Found")区别?

网友回复

+
15
-

php 5.4版本之前404的输出都是通过headerr()方法来实现;

<?php;
header('HTTP/1.1 404 Not Foun...

点击查看剩余70%

+
15
-

通过parse_str函数来实现,代码如下:

<?php
$url = "name=to...

点击查看剩余70%

我知道答案,我要回答