[pmwiki-devel] How can I modify/change header() of outputted pages?

6 views
Skip to first unread message

Steven Leite

unread,
Aug 7, 2012, 9:28:13 PM8/7/12
to pmwiki...@pmichaud.com
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();

I'm sure this is simple, but I'm just not seeing how I can accomplish this via config.php.

Thanks in advance,

Steven Leite

Background info if you need a clearer idea of what I'm trying to accomplish:
http://wordpress.org/support/topic/no-login-in-ie-in-frame
(Yes, I know it's a wordpress link, but the problem is the same in theory).



Patrick R. Michaud

unread,
Aug 7, 2012, 10:04:08 PM8/7/12
to Steven Leite, pmwiki...@pmichaud.com
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

_______________________________________________
pmwiki-devel mailing list
pmwiki...@pmichaud.com
http://www.pmichaud.com/mailman/listinfo/pmwiki-devel
Reply all
Reply to author
Forward
0 new messages