phpのHeader関数で404を返す

phpのHeader関数が変 – ブックマクロ開発に

header関数で404を返すとき、何も返さないと

[php]
header(“”,true,404);
[/php]

200が返ってしまうらしいです。

[php]
header(” “,true,404);
[/php]

空白文字なりなんなりを返すようにすれば大・丈・夫とのこと!
ひっかかりそう!

関連する記事:

Powered by

Leave a Comment


NOTE - You can use these HTML tags and attributes:
<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">