need help with a php question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • milkhead
    Confirmed User
    • Sep 2009
    • 186

    #1

    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
    So Fucking Banned
    • Oct 2012
    • 116

    #2
    your digging to deep man

    Comment

    • EddyTheDog
      Just Doing My Own Thing
      • Jan 2011
      • 25433

      #3
      Originally posted by Bad18yroldvirginteens
      your digging to deep man
      Fuck off you twat

      Comment

      • grumpy
        Too lazy to set a custom title
        • Jan 2002
        • 9870

        #4
        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

        Comment

        • k0nr4d
          Confirmed User
          • Aug 2006
          • 9231

          #5
          Originally posted by grumpy
          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.
          Mechanical Bunny Media
          Mechbunny Tube Script | Mechbunny Webcam Aggregator Script | Custom Web Development

          Comment

          • grumpy
            Too lazy to set a custom title
            • Jan 2002
            • 9870

            #6
            Originally posted by k0nr4d
            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

            Comment

            • milkhead
              Confirmed User
              • Sep 2009
              • 186

              #7
              Originally posted by k0nr4d
              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"');
              ?>

              Comment

              • Killswitch
                REVOLUTIONARY
                • Oct 2012
                • 2567

                #8
                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>

                Comment

                • k0nr4d
                  Confirmed User
                  • Aug 2006
                  • 9231

                  #9
                  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

                  Comment

                  • Vapid - BANNED FOR LIFE
                    Barterer
                    • Aug 2004
                    • 4864

                    #10
                    You can however have blank lines.

                    Comment

                    • milkhead
                      Confirmed User
                      • Sep 2009
                      • 186

                      #11
                      Originally posted by k0nr4d
                      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

                      Comment

                      • milkhead
                        Confirmed User
                        • Sep 2009
                        • 186

                        #12
                        Originally posted by k0nr4d
                        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.

                        Comment

                        • milkhead
                          Confirmed User
                          • Sep 2009
                          • 186

                          #13
                          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.

                          Comment

                          • Killswitch
                            REVOLUTIONARY
                            • Oct 2012
                            • 2567

                            #14
                            Stop trying to scam.

                            Comment

                            • k0nr4d
                              Confirmed User
                              • Aug 2006
                              • 9231

                              #15
                              Originally posted by milkhead
                              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)
                              Mechanical Bunny Media
                              Mechbunny Tube Script | Mechbunny Webcam Aggregator Script | Custom Web Development

                              Comment

                              • milkhead
                                Confirmed User
                                • Sep 2009
                                • 186

                                #16
                                Originally posted by Killswitch
                                Stop trying to scam.
                                I am not scamming anyone or anything, but thanks for giving me clarity on how the script works.

                                Comment

                                • 2012
                                  So Fucking What
                                  • Jul 2006
                                  • 17189

                                  #17
                                  i just got my certificate. let me take a look
                                  best host: Webair | best sponsor: Kink | best coder: 688218966 | Go Fuck Yourself

                                  Comment

                                  • milkhead
                                    Confirmed User
                                    • Sep 2009
                                    • 186

                                    #18
                                    Originally posted by k0nr4d
                                    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.

                                    Comment

                                    Working...