SitePoint Sponsor

User Tag List

Results 1 to 8 of 8

Thread: Q need A

  1. #1
    SitePoint Enthusiast Nasser's Avatar
    Join Date
    Jul 2001
    Location
    Qatar
    Posts
    34
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Q need A

    Hello
    What is SSI ?

  2. #2
    SitePoint Wizard
    Join Date
    Jul 2001
    Location
    The Netherlands
    Posts
    2,617
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It stands for Server Side Includes if I am not mistaking. All I know of it that it is some sort of language like PHP, which enables you to perform some server-side tasks.

  3. #3
    Mlle. Ledoyen silver trophy seanf's Avatar
    Join Date
    Jan 2001
    Location
    UK
    Posts
    7,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    It is slightly less than that. SSIs allow you to include files or information from the server. The most common use is to include a file containing the code for something that is the same across your website so you do not have to update every html page if you want to alter something, perhaps to add a link. The basic syntax for this is:

    <!--#include file="filename.extension" -->

    Sean
    Harry Potter

    -- You lived inside my world so softly
    -- Protected only by the kindness of your nature

  4. #4
    SitePoint Member
    Join Date
    Jul 2001
    Location
    Kingston, Ontario, Canada
    Posts
    4
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    SSI will also allow you to insert things like the date or time, the number of times the page has been visited, or the contents of a file. It is also often used to insert banner ads into a page. It has many drawbacks, though. The main one is that you cannot send arguments (options to help you control what is returned) to the page or script you are inserting, whereas you could easily do this with php or cgi. SSI is also not supported (or sometimes just not turned on) on all servers. If it is supported by your server, it can be very useful in some situations. You can find many tutorials on the use of the various SSI tags on the web -- a search for "SSI Tutorials" at a major search engine should return quite a few.

    Good Luck,
    David
    David W. Cook
    DCSun Internet Technologies
    http://www.dcsun.com

  5. #5
    Making a better wheel silver trophy DR_LaRRY_PEpPeR's Avatar
    Join Date
    Jul 2001
    Location
    Missouri
    Posts
    3,428
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by dcsun
    It has many drawbacks, though. The main one is that you cannot send arguments (options to help you control what is returned) to the page or script you are inserting, whereas you could easily do this with php or cgi.
    you sure about that? i thought that if you execute a Perl script through SSI that all environment vars get passed along to it. like QUERY_STRING. i think i read that in the Apache docs. could be wrong though.
    - Matt ** Ignore old signature for now... **
    Dr.BB - Highly optimized to be 2-3x faster than the "Big 3."
    "Do not enclose numeric values in quotes -- that is very non-standard and will only work on MySQL." - MattR

  6. #6
    Say WHA?! goober's Avatar
    Join Date
    Sep 2000
    Location
    United States
    Posts
    1,921
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There are different SSI commands that have to do with all kinds of things, but as for the include command, i don't think there's much you can do with it. It includes an entire file.

    http://www.webmasterbase.com/article.php/27 is Matt Mickiewicz's guide to SSI's, the basics anyway. A very good guide for beginners.
    Sean Killeen [LinkedIn] [Twitter] [Web]

    Warning: Reality.sys corrupted. Universe halted. Reboot? (Y/N)

  7. #7
    Mlle. Ledoyen silver trophy seanf's Avatar
    Join Date
    Jan 2001
    Location
    UK
    Posts
    7,168
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You can use if and else statements. So, if you put this in your config file (I assume this means httpd.conf):

    BrowserMatchNoCase macintosh Mac
    BrowserMatchNoCase MSIE InternetExplorer

    You could then do something like this

    <!--#if expr="${Mac} && ${InternetExplorer}" -->
    Apologetic text goes here
    <!--#else -->
    Cool JavaScript code goes here
    <!--#endif -->

    Found that here:

    http://httpd.apache.org/docs/howto/s...cssidirectives

    Sean
    Harry Potter

    -- You lived inside my world so softly
    -- Protected only by the kindness of your nature

  8. #8
    ********* Callithumpian silver trophy freakysid's Avatar
    Join Date
    Jun 2000
    Location
    Sydney, Australia
    Posts
    3,798
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hehe, I was basically going to post the link to the apache.org howto doc, but seanf is once again on the same wavelength.

    Basically, if you are using a embedded scripting language such as PHP, Cold Fusion, etc, then there is no reason to use SSI really. SSI is basically a very primitive form of HTML embedded scripting and in terms of functionality is superceded by PHP, Cold Fusion, etc.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •