SitePoint Sponsor

User Tag List

Results 1 to 10 of 10

Thread: SSI

  1. #1
    SitePoint Enthusiast
    Join Date
    Jul 2000
    Posts
    41
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well,
    I was working on a new design for my site and I was going to use frames but someone said:
    "Don't use frames..you should use SSI."
    I said ok...I'll think about it but actully I had no idea what he was talking about.


    Do You?

  2. #2
    Carpe Chicken Chicken's Avatar
    Join Date
    Jul 2000
    Posts
    1,220
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yeeeeup. The basic explanation...

    Create a file called something.txt (it can be named anything and could even be something.html). This file should contain what you want to insert into the other page.
    (example mypage.shtml <<< note the extension which often has to be used, but not always).

    Then in mypage.shtml, put this tag:
    <!--#include file="something.txt" -->
    in the spot you want the information contained in something.txt inserted.

    These files should be in the same directory, if not there is another way to do it....

    The tag:
    <!--#include virtual="/something.txt" -->
    will enable you to use the path to the file. This is relative to your home directory. So if your full path is /home/web/something.txt then you should use that here.

    [Edited by Chicken on 10-23-2000 at 07:29 PM]
    HostHideout.com - Where professionals discuss web hosting.
    • Chicken

  3. #3
    SitePoint Zealot
    Join Date
    Dec 1999
    Posts
    137
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Something else...
    You can learn SSI from the basics in http://www.stars.com/Authoring/SSI/

  4. #4
    Sports Publisher mjames's Avatar
    Join Date
    Jan 2000
    Location
    Charlotte, NC
    Posts
    5,891
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    SSI might frighten you at first, don't let it! It's very, very easy and can work wonders for you site. Definitely give it a go.

  5. #5
    SitePoint Zealot thespian's Avatar
    Join Date
    Sep 2000
    Location
    South Africa
    Posts
    186
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally posted by mjames86
    SSI might frighten you at first, don't let it! It's very, very easy and can work wonders for you site. Definitely give it a go.
    Definitely - It has made all the difference for me - and I am still learning.
    Bill Conté [Protected by Psalm 91]
    Web Mechanix
    Growing OLD is Mandatory - Growing UP is Optional!

  6. #6
    Non-Member
    Join Date
    Aug 2000
    Posts
    19
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    For SSI you do need to know whether your host allow SSI and also take note that even the host allow it you may need to change the .html extention to .shtml extention.

    How SSI work :


    Yeeeeup. The basic explanation...

    Create a file called something.txt (it can be named anything and could even be something.html). This file should contain what you want to insert into the other page.
    (example mypage.shtml <<< note the extension which often has to be used, but not always).

    Then in mypage.shtml, put this tag:
    <!--#include file="something.txt" -->
    in the spot you want the information contained in something.txt inserted.

    These files should be in the same directory, if not there is another way to do it....

    The tag:
    <!--#include virtual="/something.txt" -->
    will enable you to use the path to the file. This is relative to your home directory. So if your full path is /home/web/something.txt then you should use that here.


    Basicly the step should be:
    1.Create the page you want.
    2.Then create a file called it navigation.txt
    3.Then from the page you have created, CUT and PASTE the code you want into the navigation.txt
    4.After that, you should included the <!--#include virtual="navigation.txt" --> tag into the page that you had CUT and PASTE area.
    5.Then change the .html to .shtml
    6.Upload your .shtml and navigation.txt into the same directory.
    7. END. <SUCCEED>

  7. #7
    SitePoint Wizard creole's Avatar
    Join Date
    Oct 2000
    Location
    Nashvegas Baby!
    Posts
    7,845
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Just to answer the original question...using SSI does not necessarily preclude the use of frames. For example, I use both on Plus One Online

    I want the navigation bar to ve visible at all times, but I also want to edit my footer (text links and copyright info) only once. I also use includes for little modules such as random quotes and stuff like that
    Adobe Certified Coldfusion MX 7 Developer
    Adobe Certified Advanced Coldfusion MX Developer
    My Blog (new) | My Family | My Freelance | My Recipes

  8. #8
    Idea Developer
    Join Date
    Sep 2000
    Location
    Bethlehem, PA
    Posts
    521
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    server side includes

    <!--#include file="anything.txt" --> and it will copy +paste the code from that file into the file which has teh code.
    Professional PHP programing / Hosting
    aim: downtoi3iz icq: 74637813

  9. #9
    AdSpeed.com Son Nguyen's Avatar
    Join Date
    Aug 2000
    Location
    Silicon Valley
    Posts
    2,241
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You don't even need to change the ext to shtml if you could edit .htaccess file to parse the html/htm for SSI directives (calls)
    - Son Nguyen
    AdSpeed.com - Ad Serving and Ad Management Made Easy

  10. #10
    ********* Addict WP1's Avatar
    Join Date
    Aug 2000
    Location
    New York , USA
    Posts
    407
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hello Everyone,

    Just want to say, I went ahead and took the plunge into "SSI" today. I signed up for SureCity today. They have MySQl, PHP, CGI-BIN and SSI. Whew!!! made me tired writting all that. Also, the server seems to be slower than slow.

    The other "stinker" to this is they have ads. When I checked FreeWebHosts about a week ago, SureCity came up as having no ads on search. Well what can ya say!?@%^$&#?!(#&!

    Anyway, after reading this thread I went and tried it by placing the menu into a page I made. It all worked fine. Really neat.

    BTW, FreeWebHosts has a new look. I checked out the search engine again today. I don't think I like the changes AND the new search engine is "NOT COOL"

    Thanks to all in this thread, the info gave me the courage to try it. Learned something today.

    WP
    Webbing Along!!!


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
  •