GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   need help with a php question (https://gfy.com/showthread.php?t=1086139)

milkhead 10-20-2012 10:06 PM

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.

Bad18yroldvirginteens 10-20-2012 11:46 PM

your digging to deep man

EddyTheDog 10-20-2012 11:57 PM

Quote:

Originally Posted by Bad18yroldvirginteens (Post 19264780)
your digging to deep man

Fuck off you twat

grumpy 10-21-2012 04:20 AM

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.

k0nr4d 10-21-2012 05:06 AM

Quote:

Originally Posted by grumpy (Post 19264942)
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.

grumpy 10-21-2012 10:10 AM

Quote:

Originally Posted by k0nr4d (Post 19264978)
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.

milkhead 10-21-2012 12:29 PM

Quote:

Originally Posted by k0nr4d (Post 19264978)
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"');
?>

Killswitch 10-21-2012 12:37 PM

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>

k0nr4d 10-21-2012 12:52 PM

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.

Vapid - BANNED FOR LIFE 10-21-2012 12:56 PM

You can however have blank lines.

milkhead 10-21-2012 12:58 PM

Quote:

Originally Posted by k0nr4d (Post 19265437)
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 10-21-2012 01:00 PM

Quote:

Originally Posted by k0nr4d (Post 19265437)
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 10-21-2012 09:02 PM

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.

Killswitch 10-21-2012 09:53 PM

Stop trying to scam.

k0nr4d 10-21-2012 11:18 PM

Quote:

Originally Posted by milkhead (Post 19266096)
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)

milkhead 10-23-2012 07:02 PM

Quote:

Originally Posted by Killswitch (Post 19266152)
Stop trying to scam.

I am not scamming anyone or anything, but thanks for giving me clarity on how the script works.

2012 10-23-2012 07:02 PM

i just got my certificate. let me take a look

milkhead 10-23-2012 07:03 PM

Quote:

Originally Posted by k0nr4d (Post 19266241)
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.


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