August 1st, 2000, 01:57 AM
-
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
August 1st, 2000, 02:17 PM
-
August 1st, 2000, 07:38 PM
-
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.
August 1st, 2000, 11:30 PM
-
>>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.