View Full Version : shtml files

10-31-2005, 05:24 PM
I found some sites with shtml files. I don't know what that is.
what is it for? is it like html / htm / aspx / or what? is it something like xhtml?
has anyone used shtml files before?
can you explain them to me?

thank you.

11-01-2005, 12:02 AM
It's an HTML file which contains special commands for the serveur to execute before the display of the page.
Hope it's well explained.

11-01-2005, 02:11 AM
hmmm... any example of that kind of commands?
do you know what does the "S" stand for?
and do you know where can i get more info about it?
thanks!! :)

11-01-2005, 03:24 AM
SHTML : Server-parsed-html.

The Server executes the commands and displays the result in the page sent to the client.
Command types :
execution : <!--#exec cgi="/cgi-bin/compteur1i-ssi.pl"-->
Inclusion : <!--#include virtual="file ( .py, etc... )"-->
Display : <!--# echo var="DATE_LOCAL" -->

Not really used because very slow ( non dynamic variables, server parsing, etc... ).
It looks up the "<!--" and "-->" tags.

Php is way more interesting ( there are surely conversion utilities )
Sorry, that's all I can say about it, I didn't find anything about it.

Sufficient ? :)

11-01-2005, 10:10 AM
yeah!! thank you very much!! :)

11-01-2005, 04:38 PM
from what i understand it's an html page that calls scripts before rendering. these could be perl, python, ruby, tcl, etc etc. using mod_perl or mod_python or whatever in apache would work rather well, but if you don't have access to that sort of thing php would be a much better choice. beware though, one of the biggest threats to webservers for the past few years has been vunerabilities in php scripts or php itself.

11-02-2005, 01:48 AM
thank you, guys. :)
if you know where can i get more info, i would appreciate it.