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


  • 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


  • get your host to set it up...


  • 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


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

    -Kenneth


  • 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


  • 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.


  • 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


  • You just need to make the toplinks.txt have a .shtml extension, then you can nest the SSI's. :)


  • that'll work too







  • #If you have any other info about this subject , Please add it free.#
    Your name:
    E-mail:
    Telphone:

    Your comments:


    If you have any other info about SSI help , Please add it free.