header(string,replace,http_response_code);
* string Required. Specifies the header string to send
* replace Optional. Indicates whether the header should replace previous or add a second header. Default is TRUE (will replace). FALSE (allows multiple headers of the same type)
* http_response_code Optional. Forces the HTTP response code to the specified value (available in PHP 4.3 and higher)
使用此功能时我应该关注安全性?
答案 0 :(得分:1)
基本上,只要您不允许任何用户提供的内容进入标题,您就应该是安全的。