PDA

View Full Version : Server Side Includes


dav3yq
02-20-2001, 07:18 PM
I know what a server side include is, but I've never actually seen or used one and I have need to learn it. Can somebody point me to a useful resource on learning how to do this?

Thanks

Davy

Dazed
02-21-2001, 12:05 AM
Heres one @ big nose bird. http://bignosebird.com/ssi.shtml.
Or check this site for ssi in perl http://htmlgoodies.earthweb.com/tutors/master.html Theres a ton of info on a lot of diffrent things there.
hope this helps.
~Dazed~

petesmc
02-21-2001, 04:26 PM
Self promotion coming up:

http://www.codingclick.com/article.php?aid=2

Peter

dav3yq
02-21-2001, 05:16 PM
Thank you both for your help.

Davy

debby
03-04-2001, 04:32 AM
I am trying to put a simple SSI text counter on my pages. I've read everything I can find, including the 3 very good sites above, but still can't get it to work. I've got other SSI directives working on the page ( http://www.collegeteacher.org/web_publishing/ at the bottom of the page). I've also tried several small cgi scripts, setting permissions etc., with no luck. This is starting to drive me nuts!

Why does this work:
<!--#echo var="DATE_LOCAL"-->

when this doesn't:
<!--#echo var="PAGE_COUNT"-->

Help!!

bfalchuk
12-22-2001, 09:46 AM
What should the extension be on the SSI page? Do I need a different extension on the page that has the include reference?

Scotth
12-22-2001, 12:19 PM
Originally posted by bfalchuk
What should the extension be on the SSI page? Do I need a different extension on the page that has the include reference?
.shtml

witzbold
12-30-2001, 05:58 AM
saw this thread and just for reference...

<!--#include file="blah.html" -->
this can pull files in the current directory or any directory within it.

<!--#include virtual="../../blah.html" -->
this can pull files from anywhere you direct it (including back directories).

<!--#exec cmd="blah.cgi" -->
this inserts and runs scripts (cgi, perl, php... )

you also must make sure that the file containing the SSI can be parsed (typically named extension .shtml, but you can have it set up for anything...)

and that the permissions are set (for the file being called by the SSI) to letting the server read and execute them. This is typical too, i know, but I have created some headaches with permissions messes....