html/php - iframes...

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Cyber Fucker
    Hmm
    • Sep 2005
    • 12642

    #1

    html/php - iframes...

    How to make something like iframe that will display the actual code of the other page in the source code? I think that there must be some html or php solution for that...

    example
    I don't want in the source code :
    <iframe src ="/page.html" width="100%"> </iframe>

    but :
    code code code
    code code code
    code code and so on...


    Sorry for my another noob question, I would search the answer myself but I'm not sure what exactly I am looking for... so...
  • ridikuloz
    Confirmed User
    • Jun 2005
    • 2080

    #2
    err nevermind.
    Each persons' level of stupidity makes us different.

    Comment

    • ridikuloz
      Confirmed User
      • Jun 2005
      • 2080

      #3
      http://www.addressmunger.com/display_code/ here, use this.
      Each persons' level of stupidity makes us different.

      Comment

      • wateva
        So Fucking Banned
        • Jul 2007
        • 492

        #4
        w3schools.com visit this

        Comment

        • Cyber Fucker
          Hmm
          • Sep 2005
          • 12642

          #5
          thank you, but this not exactly what I am looking for I don't want to display the source code to the viewer, I want the viewer to see the actual content like pics and whole formating as it is on the original page, I just want that source code for search engines and to be viewed when I click on the browser bar view/source...

          Comment

          • Chio
            Confirmed User
            • Oct 2002
            • 8002

            #6
            Originally posted by bbwebmaster
            thank you, but this not exactly what I am looking for I don't want to display the source code to the viewer, I want the viewer to see the actual content like pics and whole formating as it is on the original page, I just want that source code for search engines and to be viewed when I click on the browser bar view/source...
            php include.

            I seo'd my hair yesterday and today it's pr7!
            RIP Texas Dreams

            Are you a content producer or program owner sick of tube sites? Contact me on ICQ: 39-183769

            Comment

            • Libertine
              sex dwarf
              • May 2002
              • 17860

              #7
              Use CSS.

              Make a div with a fixed size and this attribute:

              overflow: auto;



              Eh, nevermind. Thought you just wanted an iframe-like effect.
              /(bb|[^b]{2})/

              Comment

              • GeXus
                Confirmed User
                • May 2003
                • 3320

                #8
                Use file_get_contents() in php... then display it on a page that you iframe... I haven't tested that, may not work... but there is definitely a way without emulating a browser.

                Comment

                • Cyber Fucker
                  Hmm
                  • Sep 2005
                  • 12642

                  #9
                  Now you get what I want I will test both these php functions. Thank you for help.

                  Comment

                  • Libertine
                    sex dwarf
                    • May 2002
                    • 17860

                    #10
                    Some more info is needed, I think:

                    Is the file remote or local? If it's remote, you probably should retrieve it, store it locally and include it with a simple php include. If it's local, you can just use a simple php include.

                    Is the file a full html document or a snippet of html that uses the same formatting style as the page its in does? If it's a full html document, simply including it will most likely cause layout problems. If it's a snippet, it might still cause problems, but those should be easier to solve.
                    /(bb|[^b]{2})/

                    Comment

                    • GeXus
                      Confirmed User
                      • May 2003
                      • 3320

                      #11
                      Originally posted by Libertine
                      Some more info is needed, I think:

                      Is the file remote or local? If it's remote, you probably should retrieve it, store it locally and include it with a simple php include. If it's local, you can just use a simple php include.

                      Is the file a full html document or a snippet of html that uses the same formatting style as the page its in does? If it's a full html document, simply including it will most likely cause layout problems. If it's a snippet, it might still cause problems, but those should be easier to solve.
                      One word - Clueless.

                      Comment

                      • Cyber Fucker
                        Hmm
                        • Sep 2005
                        • 12642

                        #12
                        Originally posted by Libertine
                        Some more info is needed, I think:

                        Is the file remote or local? If it's remote, you probably should retrieve it, store it locally and include it with a simple php include. If it's local, you can just use a simple php include.

                        Is the file a full html document or a snippet of html that uses the same formatting style as the page its in does? If it's a full html document, simply including it will most likely cause layout problems. If it's a snippet, it might still cause problems, but those should be easier to solve.
                        It's a local php file

                        Comment

                        • Libertine
                          sex dwarf
                          • May 2002
                          • 17860

                          #13
                          Originally posted by GeXus
                          One word - Clueless.
                          Three words: eat shit, noob.
                          /(bb|[^b]{2})/

                          Comment

                          • GeXus
                            Confirmed User
                            • May 2003
                            • 3320

                            #14
                            Originally posted by Libertine
                            Three words: eat shit, noob.
                            Fuckin' Mr. "One-Up" Libertine

                            Comment

                            • Libertine
                              sex dwarf
                              • May 2002
                              • 17860

                              #15
                              Originally posted by bbwebmaster
                              It's a local php file
                              Then a simple php include should suffice.

                              Do you want to include full pages though, or just snippets of html?
                              /(bb|[^b]{2})/

                              Comment

                              • Cyber Fucker
                                Hmm
                                • Sep 2005
                                • 12642

                                #16
                                Originally posted by Libertine
                                Then a simple php include should suffice.

                                Do you want to include full pages though, or just snippets of html?
                                full page
                                Last edited by Cyber Fucker; 09-14-2007, 01:44 PM.

                                Comment

                                • Libertine
                                  sex dwarf
                                  • May 2002
                                  • 17860

                                  #17
                                  Originally posted by bbwebmaster
                                  full page
                                  Fuck.

                                  Assuming that the page they're being included in is a full page with a separate design as well, you have a bit of a problem.

                                  You could either get a custom include version that strips parts of html from the file being included (things like html tags, head tags, body tags, etc), or just strip it manually from those files and upload non-full versions as well, then include those.

                                  The first version will require a bit of coding and will cause unnecessary server load, so I'd go for the second version if I were you. Of course, if there are many files, you might want to write/get a simple script that processes the whole batch.

                                  Oh, and depending on the files being included and the ones they're being included in, there's the possibility of conflicting code.
                                  /(bb|[^b]{2})/

                                  Comment

                                  Working...