ssi including file help

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Jakke PNG
    ex-TeenGodFather
    • Nov 2001
    • 20306

    #1

    ssi including file help

    Can I include a file from another domain, on a page? It's on the same server. If I can, can someone share how please.
    ..and I'm off.
  • easyfun
    Confirmed User
    • Apr 2003
    • 731

    #2
    Don't think you can with ssi - Am pretty certain it has to be from the same domain
    <p><embed width="120" height="60" src="http://www.harlotcash.com/harlot_3.swf"><br>
    </p>

    Comment

    • Jakke PNG
      ex-TeenGodFather
      • Nov 2001
      • 20306

      #3
      Originally posted by easyfun
      Don't think you can with ssi - Am pretty certain it has to be from the same domain
      Crap. Is there a way around this, I don't want to use frames nor hahahahahahas.
      ..and I'm off.

      Comment

      • Jakke PNG
        ex-TeenGodFather
        • Nov 2001
        • 20306

        #4
        php?
        ..and I'm off.

        Comment

        • NetRodent
          Confirmed User
          • Jan 2002
          • 3985

          #5
          There's no reason why you shouldn't be able to. An ssi call uses the server path to the file, not the web path. Domains aren't an issue one way or the other.
          "Every normal man must be tempted, at times, to spit on his hands, hoist the black flag, and begin slitting throats."
          --H.L. Mencken

          Comment

          • vapewiz
            Confirmed User
            • Nov 2002
            • 1530

            #6
            Just put the full path to the file like this /usr/home/httpd/www/domain.com/file.name

            should work as long as its on the same server.

            Comment

            • Jakke PNG
              ex-TeenGodFather
              • Nov 2001
              • 20306

              #7
              Originally posted by NetRodent
              There's no reason why you shouldn't be able to. An ssi call uses the server path to the file, not the web path. Domains aren't an issue one way or the other.
              I got an

              [an error occurred while processing this directive]

              with full path.
              ..and I'm off.

              Comment

              • NetRodent
                Confirmed User
                • Jan 2002
                • 3985

                #8
                Did you check the log to see what the error was?
                "Every normal man must be tempted, at times, to spit on his hands, hoist the black flag, and begin slitting throats."
                --H.L. Mencken

                Comment

                • easyfun
                  Confirmed User
                  • Apr 2003
                  • 731

                  #9
                  Crap. Is there a way around this, I don't want to use frames nor hahahahahahas.

                  Hey, fat bastard - Just found this - Got it all there for you

                  http://httpd.apache.org/docs/howto/ssi.html
                  <p><embed width="120" height="60" src="http://www.harlotcash.com/harlot_3.swf"><br>
                  </p>

                  Comment

                  • Jakke PNG
                    ex-TeenGodFather
                    • Nov 2001
                    • 20306

                    #10
                    Originally posted by NetRodent
                    Did you check the log to see what the error was?
                    can't find a thing.
                    ..and I'm off.

                    Comment

                    • Jakke PNG
                      ex-TeenGodFather
                      • Nov 2001
                      • 20306

                      #11
                      Originally posted by easyfun



                      Hey, fat bastard - Just found this - Got it all there for you

                      http://httpd.apache.org/docs/howto/ssi.html

                      file
                      The value is a path relative to the directory containing the current document being parsed. It cannot contain ../, nor can it be an absolute path. Therefore, you cannot include files that are outside of the document root, or above the current document in the directory structure. The virtual attribute should always be used in preference to this one.


                      ..and I'm off.

                      Comment

                      • NetRodent
                        Confirmed User
                        • Jan 2002
                        • 3985

                        #12
                        Have you tried symlinks?
                        "Every normal man must be tempted, at times, to spit on his hands, hoist the black flag, and begin slitting throats."
                        --H.L. Mencken

                        Comment

                        • Jakke PNG
                          ex-TeenGodFather
                          • Nov 2001
                          • 20306

                          #13
                          Originally posted by NetRodent
                          Have you tried symlinks?
                          Ummm...
                          ..and I'm off.

                          Comment

                          • psili
                            Confirmed User
                            • Apr 2003
                            • 5526

                            #14
                            only way i know is PHP as mentioned

                            $outsideStr = file(implode("","http://www.leech.com");
                            echo $outsideStr;
                            Your post count means nothing.

                            Comment

                            • Jakke PNG
                              ex-TeenGodFather
                              • Nov 2001
                              • 20306

                              #15
                              Originally posted by psili
                              only way i know is PHP as mentioned

                              $outsideStr = file(implode("","http://www.leech.com");
                              echo $outsideStr;
                              Thanks, I'll have 'my' coder fix me up with something.
                              ..and I'm off.

                              Comment

                              • psili
                                Confirmed User
                                • Apr 2003
                                • 5526

                                #16
                                Originally posted by TeenGodFather

                                Thanks, I'll have 'my' coder fix me up with something.
                                good call. my code's pretty profane at times anyway.
                                Your post count means nothing.

                                Comment

                                Working...