-
-
shtml = html + ssi includes; that's pretty much the only difference. And if one really needs ssi, it can be set so that regular html pages can use it.
And then there is Death
-
-
SSI is nice if you want to embed CGI scripts into HTML documents, or include external HTML files into an HTML file. I've never had any use for it other than that. If you have a bit of HTML (a header for example) that a hundred pages on your site all use, you can have each of the pages fetch that header from a separate file rather than having to change it 100 times if you ever update it. So it can be used for a kind of primitive templating system.
Many hosts disable SSI though because it can be a huge security risk, and if you use it too much it can be a mild CPU hit because you're fetching and building files on the fly every time anyone views your site, though I'm pretty sure most servers nowadays can more than handle it.
-
-
I'd use Perl for something that had to be dynamic, but that's just me. Don't know any pure SSI way of doing anything other than "import the text from file x" or "run CGI script x and import the results".
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules