![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
Confirmed User
Join Date: Sep 2009
Posts: 186
|
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
So Fucking Banned
Industry Role:
Join Date: Oct 2012
Posts: 116
|
your digging to deep man
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Just Doing My Own Thing
Industry Role:
Join Date: Jan 2011
Location: London, Spain, New Zealand, GFY - Not Croydon...
Posts: 25,040
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Too lazy to set a custom title
Join Date: Jan 2002
Location: Holland
Posts: 9,870
|
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.
__________________
Don't let greediness blur your vision | You gotta let some shit slide icq - 441-456-888 |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 |
Confirmed User
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,228
|
It doesn't have to be the first line of the script - it just has to be before anything is sent to the output buffer.
__________________
Mechanical Bunny Media Mechbunny Tube Script | Mechbunny Webcam Aggregator Script | Custom Web Development |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 | |
Too lazy to set a custom title
Join Date: Jan 2002
Location: Holland
Posts: 9,870
|
Quote:
you are right, better explanation.
__________________
Don't let greediness blur your vision | You gotta let some shit slide icq - 441-456-888 |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 | |
Confirmed User
Join Date: Sep 2009
Posts: 186
|
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"'); ?> |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
👏 REVOLUTIONARY 👏
Industry Role:
Join Date: Oct 2012
Posts: 2,304
|
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>
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#9 |
Confirmed User
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,228
|
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.
__________________
Mechanical Bunny Media Mechbunny Tube Script | Mechbunny Webcam Aggregator Script | Custom Web Development |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#10 |
Barterer
Industry Role:
Join Date: Aug 2004
Posts: 4,864
|
You can however have blank lines.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#11 |
Confirmed User
Join Date: Sep 2009
Posts: 186
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#12 |
Confirmed User
Join Date: Sep 2009
Posts: 186
|
Thank you for clearing this up, I appreciate your response and thank you to everyone who responded as well.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#13 |
Confirmed User
Join Date: Sep 2009
Posts: 186
|
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.
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#14 |
👏 REVOLUTIONARY 👏
Industry Role:
Join Date: Oct 2012
Posts: 2,304
|
Stop trying to scam.
__________________
![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#15 |
Confirmed User
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,228
|
You cannot set a cookie for a third party site (unless you find some kind of browser exploit, and even if you do it would probably get patched soon so it's not a long-term strategy)
__________________
Mechanical Bunny Media Mechbunny Tube Script | Mechbunny Webcam Aggregator Script | Custom Web Development |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#16 |
Confirmed User
Join Date: Sep 2009
Posts: 186
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#17 |
So Fucking What
Industry Role:
Join Date: Jul 2006
Posts: 17,189
|
i just got my certificate. let me take a look
__________________
best host: Webair | best sponsor: Kink | best coder: 688218966 | Go Fuck Yourself ![]() |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#18 |
Confirmed User
Join Date: Sep 2009
Posts: 186
|
|
![]() |
![]() ![]() ![]() ![]() ![]() |