Forum Moderators: open
CP="ALL DSP COR PSAa PSDa OUR NOR ONL UNI COM NAV"
I've tried adding this code directly to my HTML pages:
<?php header("P3P: CP="ALL DSP COR PSAa PSDa OUR NOR ONL UNI COM NAV");?>
Doesnt work...
I've tried using the INCLUDE function and adding this code to my HTML pages...
<?php include_once("privacy.php");?>
Doesnt work...
I've tried this code:
header('P3P: CP="ALL DSP COR PSAa PSDa OUR NOR ONL UNI COM NAV"');
Doesnt work...
I've tried adding the code at the very top of my HTML pages, below the <HTML> tag, below the <HEAD> tag, and nothing works.
What do I have to do to successfully add my P3P HTTP headers to all of my HTML pages?
By the way, I don't have mod_headers enabled, so I can't do it with htaccess.
Thanks
Tom
We're running an apache server, and that works fine for us, but then we're adding a visible header to our HTML pages, and I'm not sure if that's what you want... :)
Good luck,
Tobyn
EDIT: Here's something else I found online that may help... here [us2.php.net]
<?php header("P3P: CP="ALL DSP COR PSAa PSDa OUR NOR ONL UNI COM NAV");?> This is what you need to add the p3p header to a PHP file.
It must appear before any other output.
I notice you are talking about html pages?
Typically *.html page will not be parsed for any php content. Usually only *.php files are parsed.