[pmwiki-devel] How can I modify/change header() of outputted pages?
Patrick R. Michaud
pmichaud at pobox.com
Tue Aug 7 21:04:08 CDT 2012
On Tue, Aug 07, 2012 at 06:28:13PM -0700, Steven Leite wrote:
> Hello Dev's,
>
> Need a bit of help. I want to add/inject this php to my page output:
>
> header('P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD IVAi IVDi CONi HIS
> OUR IND CNT"');
>
> Adding stuff to $HTMLHeaderFmt won't work, as this is technically
> HTML, and it's process after the call to header();
You're looking for $HTTPHeaders, not $HTMLHeaderFmt:
$HTTPHeaders[] = 'P3P:CP="IDC DSP COR ADM DEVi TAIi PSA PSD
IVAi IVDi CONi HIS OUR IND CNT";
$HTMLHeaderFmt gives the things to be placed in the HTML <head>
section. $HTTPHeaders gives the things to be sent via header()
commands.
Pm
More information about the pmwiki-devel
mailing list