#1
  1. No Profile Picture
    chinnavi
    Guest
    Devshed Newbie (0 - 499 posts)
    hai
    i wrote one banner rotation program that will equally distributes my ads in to my web pages ...
    The problem now is i have to include this in my html file.
    I know this can be done by using SSI ..
    I have apache running in RedHat 6.1 ...along with MySQL ..
    Anybody please help me in activating SSI support in my Server.


    vijay
  2. #2
  3. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
  4. #3
  5. No Profile Picture
    Junior Member
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2000
    Location
    brooklyn, ny, usa
    Posts
    1
    Rep Power
    0
    Thats very easy to do.
    First to use SSI in an html file your file must have the extension of shml instead of html or htm, so it would be somefile.shtml
    Now you are ready to actually use SSI. in ur file put one of the following lines:

    To include files, use the following include directives in your HTML pages:
    <!--#include virtual="somedirectory/banner.htm" -->

    or

    <!--#include file="somedirectory/banner.htm" -->


    To include CGI output, use:
    <!--#exec include="cgi-bin/script.pl" -->

    or

    <!--#exec cgi="/usr/home#/username/html/cgi-bin/script.cgi" -->

    Do now use urls they wont work so dont put something like http://www.yoursite.com/thisfile.cgi or somethig like that, make sure you are using a path to the file, thats the only thing that will work.
  6. #4
  7. No Profile Picture
    freebsd
    Guest
    Devshed Newbie (0 - 499 posts)
    >>First to use SSI in an html file your file must have the extension of shml instead of html or htm

    It's not a MUST

    >>Anybody please help me in activating SSI support in my Server.

    He was not asking for how SSI works.

IMN logo majestic logo threadwatch logo seochat tools logo