![]() |
need help with a php question
I am trying to pass cookies to an iframe for internet explorer and I did some research and found I need to use a header file and use this:
<?php header('p3p: CP="NOI ADM DEV PSAi COM NAV OUR OTR STP IND DEM"'); ?> but my question is how do write the header file? Then where do I put this part below: <?php header('p3p: CP="NOI ADM DEV PSAi COM NAV OUR OTR STP IND DEM"'); ?> For example do I put it in the head tag, body tag, inside the iframe and etc and does the page that contains content have to be a php file? So my main question is can some write the header.php code for <?php header('p3p: CP="NOI ADM DEV PSAi COM NAV OUR OTR STP IND DEM"'); ?> and then tell me where i need to put this part <?php header('p3p: CP="NOI ADM DEV PSAi COM NAV OUR OTR STP IND DEM"'); ?> Thank you for everyone's time and I look forward to anyone's reply, good day to all. |
your digging to deep man
|
Quote:
|
should be the first line in your script, before anything else in your script. You can only do it if the iframe is at the same server as the site.
|
Quote:
|
Quote:
you are right, better explanation. |
Quote:
<?php header('p3p: CP="NOI ADM DEV PSAi COM NAV OUR OTR STP IND DEM"'); ?> in the head tag and that's it? I don't need to make a header file? Or if its not to much trouble can I get s step by step explanation on how to make this work: <?php header('p3p: CP="NOI ADM DEV PSAi COM NAV OUR OTR STP IND DEM"'); ?> |
You don't have to keep pasting the header function in your replies, we know what you're trying to say.
Like K0nr4d said, it's gotta be before any output has been sent to the browser. If your page is just html, then put it above your <!DOCTYPE> |
You just have to put it anywhere on your file that is BEFORE anything gets outputted. Meaning above <html> or <!DOCTYPE> or whatever is at the very top. You can't even have a space before it.
|
You can however have blank lines.
|
Quote:
|
Quote:
|
is there away to set cookies for a third party site as well? Example site a.com loads site b.com into an iframe on a.com.
|
Stop trying to scam.
|
Quote:
|
Quote:
|
i just got my certificate. let me take a look
|
Quote:
|
All times are GMT -7. The time now is 11:01 AM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123