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.

Post New Thread Reply

Register GFY Rules Calendar
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed.

 
Thread Tools
Old 10-20-2012, 10:06 PM   #1
milkhead
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.
milkhead is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-20-2012, 11:46 PM   #2
Bad18yroldvirginteens
So Fucking Banned
 
Industry Role:
Join Date: Oct 2012
Posts: 116
your digging to deep man
Bad18yroldvirginteens is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-20-2012, 11:57 PM   #3
EddyTheDog
Just Doing My Own Thing
 
EddyTheDog's Avatar
 
Industry Role:
Join Date: Jan 2011
Location: London, Spain, New Zealand, GFY - Not Croydon...
Posts: 25,040
Quote:
Originally Posted by Bad18yroldvirginteens View Post
your digging to deep man
Fuck off you twat
EddyTheDog is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-21-2012, 04:20 AM   #4
grumpy
Too lazy to set a custom title
 
grumpy's Avatar
 
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
grumpy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-21-2012, 05:06 AM   #5
k0nr4d
Confirmed User
 
k0nr4d's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,228
Quote:
Originally Posted by grumpy View Post
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.
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.
k0nr4d is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-21-2012, 10:10 AM   #6
grumpy
Too lazy to set a custom title
 
grumpy's Avatar
 
Join Date: Jan 2002
Location: Holland
Posts: 9,870
Quote:
Originally Posted by k0nr4d View Post
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.

you are right, better explanation.
__________________
Don't let greediness blur your vision | You gotta let some shit slide
icq - 441-456-888
grumpy is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-21-2012, 12:29 PM   #7
milkhead
Confirmed User
 
Join Date: Sep 2009
Posts: 186
Quote:
Originally Posted by k0nr4d View Post
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.
Sorry i am bit confused, do i put this:

<?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"');
?>
milkhead is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-21-2012, 12:37 PM   #8
Killswitch
👏 REVOLUTIONARY 👏
 
Killswitch's Avatar
 
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>
__________________
Killswitch is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-21-2012, 12:52 PM   #9
k0nr4d
Confirmed User
 
k0nr4d's Avatar
 
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.
k0nr4d is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-21-2012, 12:56 PM   #10
Vapid - BANNED FOR LIFE
Barterer
 
Industry Role:
Join Date: Aug 2004
Posts: 4,864
You can however have blank lines.
Vapid - BANNED FOR LIFE is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-21-2012, 12:58 PM   #11
milkhead
Confirmed User
 
Join Date: Sep 2009
Posts: 186
Quote:
Originally Posted by k0nr4d View Post
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.
Wow that easy huh? Thanks for your help
milkhead is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-21-2012, 01:00 PM   #12
milkhead
Confirmed User
 
Join Date: Sep 2009
Posts: 186
Quote:
Originally Posted by k0nr4d View Post
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.
Thank you for clearing this up, I appreciate your response and thank you to everyone who responded as well.
milkhead is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-21-2012, 09:02 PM   #13
milkhead
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.
milkhead is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-21-2012, 09:53 PM   #14
Killswitch
👏 REVOLUTIONARY 👏
 
Killswitch's Avatar
 
Industry Role:
Join Date: Oct 2012
Posts: 2,304
Stop trying to scam.
__________________
Killswitch is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-21-2012, 11:18 PM   #15
k0nr4d
Confirmed User
 
k0nr4d's Avatar
 
Industry Role:
Join Date: Aug 2006
Location: Poland
Posts: 9,228
Quote:
Originally Posted by milkhead View Post
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.
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)
k0nr4d is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-23-2012, 07:02 PM   #16
milkhead
Confirmed User
 
Join Date: Sep 2009
Posts: 186
Quote:
Originally Posted by Killswitch View Post
Stop trying to scam.
I am not scamming anyone or anything, but thanks for giving me clarity on how the script works.
milkhead is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-23-2012, 07:02 PM   #17
2012
So Fucking What
 
2012's Avatar
 
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
2012 is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Old 10-23-2012, 07:03 PM   #18
milkhead
Confirmed User
 
Join Date: Sep 2009
Posts: 186
Quote:
Originally Posted by k0nr4d View Post
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)
thanks for all your help too, you have been helpful and informative.
milkhead is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote
Post New Thread Reply
Go Back   GoFuckYourself.com - Adult Webmaster Forum > >

Bookmarks



Advertising inquiries - marketing at gfy dot com

Contact Admin - Advertise - GFY Rules - Top

©2000-, AI Media Network Inc



Powered by vBulletin
Copyright © 2000- Jelsoft Enterprises Limited.