Serious Thread (ST) - SSI or equivalent to include a page across several domains?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • juicylinks
    So Fucking Banned
    • Apr 2001
    • 122992

    #1

    Serious Thread (ST) - SSI or equivalent to include a page across several domains?

    All domains are on same box..... will SSI work across server for a few domains?

    I need to include links on each page and dont want to update evry page rather one main page the the SSi or whatever will call.


    ????
  • bluff
    Too lazy to set a custom title
    • Jan 2004
    • 6253

    #2
    Originally posted by juicylinks
    All domains are on same box..... will SSI work across server for a few domains?

    I need to include links on each page and dont want to update evry page rather one main page the the SSi or whatever will call.


    ????
    I think it will. Just give it a try!

    Comment

    • bluff
      Too lazy to set a custom title
      • Jan 2004
      • 6253

      #3
      Originally posted by bluff
      I think it will. Just give it a try!
      better include a (pic) in your title next time instead of a (ST) if you know what I mean...

      Comment

      • juicylinks
        So Fucking Banned
        • Apr 2001
        • 122992

        #4

        Comment

        • juicylinks
          So Fucking Banned
          • Apr 2001
          • 122992

          #5

          Comment

          • juicylinks
            So Fucking Banned
            • Apr 2001
            • 122992

            #6
            If i dont get help

            I wont post funny pics anymore

            Comment

            • MrIzzz
              If u touch it, I will cum
              • Sep 2003
              • 22923

              #7
              funny how a serious thread doesnt get any answers


              WHO WANTS TO PLAY GRAB-ASS?

              Comment

              • sumphatpimp
                Confirmed User
                • Aug 2002
                • 5235

                #8
                hit this link or your Q factor will suffer

                Comment

                • WebTitan
                  Confirmed User
                  • Mar 2003
                  • 5114

                  #9
                  yes, will work with files OR directories, have a few clients that use shared content for members areas, and asl long as everything sits on the same machine, will work fine.

                  Comment

                  • hibbidiji
                    Confirmed User
                    • Sep 2002
                    • 208

                    #10
                    You can do it on the same server easily. if you want to do it across servers you're gonna want to use something like php which if setup properly can do it very easily. (easiest in fact) if you need help hit
                    36670850

                    D
                    ---------------

                    Comment

                    • jimboc
                      Confirmed User
                      • Jun 2002
                      • 1614

                      #11
                      Originally posted by juicylinks
                      If i dont get help

                      I wont post funny pics anymore
                      Someone help juicy

                      Comment

                      • gornyhuy
                        Chafed.
                        • May 2002
                        • 18041

                        #12
                        This is why god gave hosting companies tech support.

                        icq:159548293

                        Comment

                        • WebTitan
                          Confirmed User
                          • Mar 2003
                          • 5114

                          #13
                          this is also helpfull and might help with what you need doing:
                          http://linux.about.com/library/cmd/blcmdl1_ln.htm

                          Comment

                          • cluck
                            Confirmed User
                            • Dec 2002
                            • 5248

                            #14
                            I do that with galleries. Like my gallery list is on one domain and I do a php include of ../www.picshow.net/galdump/teens7.txt or whatever.
                            icq 279990726
                            www.mcdonalds.com <- great money making opportunity

                            Comment

                            • modifried
                              Registered User
                              • Feb 2004
                              • 38

                              #15
                              SSI won't be able to help as it has no access to any sort of URL wrapper, PHP is something that would work. When compiled with the proper configuration options, you're able to include other files via HTTP.

                              Keep in mind, though, you will _not_ be able to include PHP code and have it be run on the local server it's being included on.

                              General syntax would be:

                              &lt;?php
                              include("http://www.yoursite.com/includes/include.htm");
                              ?>

                              Any questions feel free to ICQ me.

                              Andy
                              Coder.

                              ICQ - 39959568
                              Email - [email protected]

                              Comment

                              • juicylinks
                                So Fucking Banned
                                • Apr 2001
                                • 122992

                                #16
                                Originally posted by gornyhuy
                                This is why god gave hosting companies tech support.
                                I dont use tech support for educational purposes. I try to figure and learn it myself.


                                I am just teaching myself juicy stuff

                                Comment

                                • gornyhuy
                                  Chafed.
                                  • May 2002
                                  • 18041

                                  #17
                                  Originally posted by juicylinks
                                  I dont use tech support for educational purposes. I try to figure and learn it myself.


                                  I am just teaching myself juicy stuff
                                  In that case you should use PHP includes, you can include basically anything anywhere. If have .php files gives you heartburn there are tricks to avoid that.

                                  icq:159548293

                                  Comment

                                  • modifried
                                    Registered User
                                    • Feb 2004
                                    • 38

                                    #18
                                    Originally posted by gornyhuy
                                    In that case you should use PHP includes, you can include basically anything anywhere. If have .php files gives you heartburn there are tricks to avoid that.
                                    Yeah, the most effective of which being to either edit the httpd.conf file or use an .htaccess file with the line:


                                    AddType application/x-httpd-php .php .php3 .htm .html

                                    To make .htm and .html files work with the PHP parser.


                                    Edit: Assuming it's an apache webserver.
                                    Coder.

                                    ICQ - 39959568
                                    Email - [email protected]

                                    Comment

                                    • AWC
                                      Confirmed User
                                      • Aug 2001
                                      • 1223

                                      #19
                                      why not use symbolic links to the file... and then ssi to include.

                                      then update your primary file.

                                      Comment

                                      • hibbidiji
                                        Confirmed User
                                        • Sep 2002
                                        • 208

                                        #20
                                        Originally posted by modifried
                                        SSI won't be able to help as it has no access to any sort of URL wrapper, PHP is something that would work. When compiled with the proper configuration options, you're able to include other files via HTTP.

                                        Keep in mind, though, you will _not_ be able to include PHP code and have it be run on the local server it's being included on.

                                        General syntax would be:

                                        &lt;?php
                                        include("http://www.yoursite.com/includes/include.htm");
                                        ?>

                                        Any questions feel free to ICQ me.

                                        Andy
                                        hehe now lets be precise so long as we're teaching juicy the ropes on php. you CAN include remote php code, but you have to treat it well you can pop the code as plaintext (non parsed) on one machine (SO insecure it hurts) and include it on another box and EVAL it which works fine... base64encoding and gzipping then removing the code bits helps to secure it a bit if you dont mind a 12 year old figuring it out.

                                        but fair's fair, mod is right (and I'm sure he knew all this) you cant just include php code from remote servers as it will be parsed by apache (or whatever) before it gets to you.

                                        dont even get me started on SOAP ;)

                                        D
                                        ---------------

                                        Comment

                                        • jayeff
                                          Confirmed User
                                          • May 2001
                                          • 2944

                                          #21
                                          You can access via SSI files and directories across domains on a single machine. But first you need to set up an alias for each directory (tree) that you want to be able to address in this way.

                                          You do this in httpd.conf and an example would be:
                                          Alias /common /full_server_path_to_one_of_your_domains/common

                                          Using that example, you would then be able to address files and subdirectories in the directory "common" using the same SSI commands as if that directory existed on each domain. BTW this works not only for SSI includes, etc., but also for normal href= calls, img src= etc.

                                          Comment

                                          • milambur
                                            Mainstream since 2010
                                            • Jan 2003
                                            • 1327

                                            #22
                                            Since it's all on the same server use the absolute path to the file with php include instead, much faster then a http reference.
                                            Alea iacta est

                                            Comment

                                            • hibbidiji
                                              Confirmed User
                                              • Sep 2002
                                              • 208

                                              #23
                                              Originally posted by milambur
                                              Since it's all on the same server use the absolute path to the file with php include instead, much faster then a http reference.

                                              terry goodkind? milamber?
                                              ---------------

                                              Comment

                                              • modifried
                                                Registered User
                                                • Feb 2004
                                                • 38

                                                #24
                                                Originally posted by hibbidiji
                                                hehe now lets be precise so long as we're teaching juicy the ropes on php. you CAN include remote php code, but you have to treat it well you can pop the code as plaintext (non parsed) on one machine (SO insecure it hurts) and include it on another box and EVAL it which works fine... base64encoding and gzipping then removing the code bits helps to secure it a bit if you dont mind a 12 year old figuring it out.

                                                but fair's fair, mod is right (and I'm sure he knew all this) you cant just include php code from remote servers as it will be parsed by apache (or whatever) before it gets to you.

                                                dont even get me started on SOAP ;)

                                                D
                                                Yeah. Although, technically, it'd be parsed by PHP before it gets to you. Apache passes it to the PHP parser, which returns the modified code back to Apache to server. ;)

                                                And yes, you _could_ include remote PHP code, using the methods you mentioned. Another would be to use PHP's sockets support to open an https connection to the server with the code, and send a password via POST to retrieve the content. The server could keep an active list of allowed domains/scripts that it will serve, and if you're not on the list, OR you're on it and supply an invalid pass, just spit out an error instead.
                                                Coder.

                                                ICQ - 39959568
                                                Email - [email protected]

                                                Comment

                                                • modifried
                                                  Registered User
                                                  • Feb 2004
                                                  • 38

                                                  #25
                                                  Originally posted by milambur
                                                  Since it's all on the same server use the absolute path to the file with php include instead, much faster then a http reference.
                                                  Yeah, I didn't pay enough attention to the original post, I thought he wanted to include across separate servers. I agree with the above post (namely because it's right;), including via absolute path will save you some overhead and make for faster response times in general.
                                                  Coder.

                                                  ICQ - 39959568
                                                  Email - [email protected]

                                                  Comment

                                                  • milambur
                                                    Mainstream since 2010
                                                    • Jan 2003
                                                    • 1327

                                                    #26
                                                    Originally posted by hibbidiji
                                                    terry goodkind? milamber?
                                                    Raymond E. Feist , I misspelled it the first time i used it and it stuck after that.
                                                    Alea iacta est

                                                    Comment

                                                    Working...