提示:如需确定是否已发送报头,请使用 headers_sent() 函数。
</>code
- <?php
- setcookie("TestCookie","SomeValue");
- header("X-Sample-Test: foo");
- header('Content-type: text/plain');
- ?>
- <html>
- <body>
- <?php
- // 发送哪些报头?
- var_dump(
headers_list()
);- ?>
- </body>
- </html>
如对本文有疑问,请提交到交流论坛,广大热心网友会为你解答!! 点击进入论坛
Powered by 365建站网 RSS地图 HTML地图
copyright © 2013-2024 版权所有 鄂ICP备17013400号