摘要: 定义和用法header() 函数向客户端发送原始的 HTTP 报头。认识到一点很重要,即必须在任何实际的输出被发送之前调用 header() 函数(在 PHP 4 以及更高的版本中,您可以使用输出缓存来解决此问题):<html><?php// 结果出错// 在调用 header() 之前已存在输出header('Location: http://www.example.com/');?>语法header(string,replace,http_response_code)参数描述string必需。规定要发送的报头字符串。replace可选。指示该报头是否 阅读全文
posted @ 2013-03-22 20:55 程序之魂 阅读(177) 评论(0) 推荐(0)