what am I doing wrong with this SSI?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • AmateurFlix
    Confirmed User
    • Jul 2004
    • 7762

    #1

    what am I doing wrong with this SSI?

    I'm trying to get a toplist to display on this page http://www.nudebabepic.com/owngalleries/

    and keep getting the message [an error occurred while processing this directive]

    the page is a .shtml extension and I've used the include statements in the form of both:
    <!--#include virtual='/home/nudepic/public_html/sloth_toplist/top15.html' -->
    and
    <!--#include virtual='http://www.nudebabepic.com/sloth_toplist/top15.html' -->

    in an attempt to include this page http://www.nudebabepic.com/sloth_toplist/top15.html
    but both statements are generating this same error on the page. I've used variations of the path statements above on php pages with success, however they don't seem to work on this shtml page for some reason. BTW, the includes do work on the page at the root url, it's just where this page is in the subdirectory and it's trying to reach a different subdirectory where it's getting this error.

    Any idea what I'm doing wrong here?
  • Webby
    Too lazy to set a custom title
    • Oct 2002
    • 14956

    #2
    Works now AmateurFlix?

    <!--#include virtual=' blah should be relative to that domain root and not the server account?
    XXX TLD's - Another mosquito to swat.

    Comment

    • The Truth Hurts
      Zph7YXfjMhg
      • Nov 2002
      • 15780

      #3
      have you tried using double quotes?

      Comment

      • kenny
        Confirmed User
        • Mar 2002
        • 7245

        #4
        Originally posted by Webby
        Works now AmateurFlix?

        <!--#include virtual=' blah should be relative to that domain root and not the server account?
        Webby is right
        Last edited by kenny; 01-19-2006, 01:46 PM.
        7

        Comment

        • Webby
          Too lazy to set a custom title
          • Oct 2002
          • 14956

          #5
          Ah shit.. see what you mean.

          Try this.. if the actual calling page is on the domain root use this...

          <!--#include virtual="sloth_toplist/top15.html"-->

          If the calling page is one dir down from the domain root, try this...

          <!--#include virtual="../sloth_toplist/top15.html"-->
          XXX TLD's - Another mosquito to swat.

          Comment

          • kenny
            Confirmed User
            • Mar 2002
            • 7245

            #6
            or maybe like this

            <!--#include file="../sloth_toplist/top15.html"-->

            or even like this

            <!--#include virtual="/sloth_toplist/top15.html"-->


            I think the last one is right. I just looked at thats how I do it on my server.
            7

            Comment

            • AmateurFlix
              Confirmed User
              • Jul 2004
              • 7762

              #7
              Thanks Webby & kenny, <!--#include virtual="../sloth_toplist/top15.html"--> did the trick for the .html include; however for some reason an include file statement calling a php file (for a tradescript) isn't responding the same way;

              on the root url this works: <!--#include file="sloth_in.php" -->
              however I'm running into the same problem being in a subdomain as with the toplist example above. I've tried:
              <!--#include file="sloth_in.php" -->
              <!--#include file="../sloth_in.php" -->
              <!--#include file='../sloth_in.php' -->
              <!--#include file="http://www.nudebabepic.com/sloth_in.php" -->

              without any luck so far. any ideas for this one (it's the last one, I swear lol)?

              Comment

              • AmateurFlix
                Confirmed User
                • Jul 2004
                • 7762

                #8
                Originally posted by AmateurFlix
                however I'm running into the same problem being in a subdomain
                err, I meant 'subdirectory'

                Comment

                • kenny
                  Confirmed User
                  • Mar 2002
                  • 7245

                  #9
                  Can't you just use the include virtual methond again?

                  <!--#include virtual="../sloth_in.php" -->

                  since thats how you did it last time.

                  or

                  <!--#include virtual="/sloth_in.php" -->
                  Last edited by kenny; 01-19-2006, 02:30 PM.
                  7

                  Comment

                  • Webby
                    Too lazy to set a custom title
                    • Oct 2002
                    • 14956

                    #10
                    Mmm.. don't think ya can include php's using the virtual directive AmateurFlix..

                    Hang on and I'll check!
                    XXX TLD's - Another mosquito to swat.

                    Comment

                    • AmateurFlix
                      Confirmed User
                      • Jul 2004
                      • 7762

                      #11
                      hmm, well it's not generating an error message with the include virtual however my trade script documentation says to use include virtual for the html and include file for the php; so I really don't know if this is working or not yet, even though the error message is gone

                      Comment

                      • kenny
                        Confirmed User
                        • Mar 2002
                        • 7245

                        #12
                        Originally posted by AmateurFlix
                        hmm, well it's not generating an error message with the include virtual however my trade script documentation says to use include virtual for the html and include file for the php; so I really don't know if this is working or not yet, even though the error message is gone

                        http://www.nudebabepic.com/sloth_in.php

                        There is nothing on the page you're calling
                        7

                        Comment

                        • Webby
                          Too lazy to set a custom title
                          • Oct 2002
                          • 14956

                          #13
                          If there are variables on your php file... don't think they will be passed when you use a virtual include ssi call...

                          I've never thought of mixing php and ssi so far, but looks possible to a degree.. just testing that now!!
                          XXX TLD's - Another mosquito to swat.

                          Comment

                          • AmateurFlix
                            Confirmed User
                            • Jul 2004
                            • 7762

                            #14
                            Originally posted by kenny
                            http://www.nudebabepic.com/sloth_in.php

                            There is nothing on the page you're calling
                            that sloth_in.php file isn't a real page, it only exists to track referrer info of incoming hits for the trade script/toplist

                            Comment

                            • AmateurFlix
                              Confirmed User
                              • Jul 2004
                              • 7762

                              #15
                              Originally posted by Webby
                              If there are variables on your php file... don't think they will be passed when you use a virtual include ssi call...

                              I've never thought of mixing php and ssi so far, but looks possible to a degree.. just testing that now!!
                              I just entered this <!--#include virtual="../sloth_in.php" --> and forced some traffic to the page from another of my sites; it does appear to be functioning properly as far as I can tell, at least in this instance.

                              Thanks for all the assistance!

                              Comment

                              • Webby
                                Too lazy to set a custom title
                                • Oct 2002
                                • 14956

                                #16
                                Originally posted by AmateurFlix
                                that sloth_in.php file isn't a real page, it only exists to track referrer info of incoming hits for the trade script/toplist
                                Yea.. noticed the code...

                                Still playing with it... but looks as though it can get messy... the reverse way round is obviously easier.. ie calling in include into a php page...

                                Found a references ya may want to check....

                                http://www.zytrax.com/tech/php/php_ssi.htm

                                http://www.webmasterworld.com/forum88/354.htm

                                OK.. who knows this stuff or used it??
                                XXX TLD's - Another mosquito to swat.

                                Comment

                                • Webby
                                  Too lazy to set a custom title
                                  • Oct 2002
                                  • 14956

                                  #17
                                  Originally posted by AmateurFlix
                                  I just entered this <!--#include virtual="../sloth_in.php" --> and forced some traffic to the page from another of my sites; it does appear to be functioning properly as far as I can tell, at least in this instance.

                                  Thanks for all the assistance!
                                  Good!! Just check for any variables you may want passed to someplace else.
                                  XXX TLD's - Another mosquito to swat.

                                  Comment

                                  Working...