All,
I have a PHP application that seems to generate the following headers in an array. I wish to remove these headers, so I can set new ones like the one for a pdf download.
array(2) {
[0]=>
string(23) "X-Powered-By: PHP/5.3.1"
[1]=>
string(23) "Content-type: text/html"
}
How do I do this, as this doesn't seem to work:
var_dump(headers_list());
header_remove("X-Powered-By");
header_remove("Content-type");
var_dump(headers_list());