Announcement

Collapse
No announcement yet.

SSI help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • SSI help

    Hi ya

    Most of my site is made up of SSI calls, but I have hit a problem.
    Because the file extensions have to be .shtml on my webserver, I call a text file called toplinks.txt which contains the top links of my site.
    In there, I want to make an SSI call to a random quote, but because it is a .txt file, it won't allow it.

    Is there anyway to bypass it?

    --James

  • #2
    you mean nested ssi calls?

    (ssi calls toplinks.txt, which has a ssi call in it?)

    I don't think it is possible, what you might want to do is split the file into the part above and below the nested ssi call

    Comment


    • #3
      Or better yet...

      If you are using PHP, bugger SSI and use include(). You can recursively call as many files as you want, php or not.

      -Kenneth

      Comment


      • #4
        urm... please can you explain it a little more?

        I am a newbie

        --WildWayz

        PS - also, how can I do it so .php pages are shown if no HTML files are in the dir? At the moment, if an index.htm/l file isn't found, then it shows a dir listing.

        Comment


        • #5
          i also need to know how to do php include calls

          wildwayz... if you're still using webmin , the directory problem can be solved through webmin... that's how i got http://animeboards.net/forums/

          to requet the index.php file
          :: Always Back Up Forum Database + Attachments BEFORE upgrading !
          :: Nginx SPDY SSL - World Flags Demo [video results]
          :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

          Comment


          • #6
            Lo,

            I have Webmin on my dedicated host, but because the server is hush-hush the admin isn't helping me.
            And Apache isn't setup and I have no idea how to get it working LOL

            MySQL works on it tho

            --James

            Comment


            • #7
              get your host to set it up...
              :: Always Back Up Forum Database + Attachments BEFORE upgrading !
              :: Nginx SPDY SSL - World Flags Demo [video results]
              :: vBulletin hacked forums: Clean Up Guide for VPS/Dedicated hosting users [ vbulletin.com blog summary ]

              Comment


              • #8
                Code:
                <?php 
                require ('shtml/tophome.html');
                require ('shtml/topnavstrip.html');
                require ('shtml/topextrastrip.html');
                require ('shtml/topsearch.html');
                ?>
                I think its something like that, if not I'd have to check my page code, I'm pretty sure thats what it is
                Require is better than the include function, I think

                Comment


                • #9
                  You just need to make the toplinks.txt have a .shtml extension, then you can nest the SSI's.
                  We're Here Forums!
                  [email protected]

                  Comment


                  • #10
                    that'll work too

                    Comment

                    widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                    Working...
                    X