shtml - does anyone still use it

Pages: 1, 2
free web hosting

Read Latest Entries..: (Post #18) by snlildude87 on Mar 10 2005, 04:38 AM. (Line Breaks Removed)
I use shtml to generate random facts on my front page. To do this:1. Create a cgi-bin directory2. Create a facts.txt file in the cgi-bin directory and put facts in there: 1 fact per line3. Create a file named facts.cgi in notepad4. In facts.cgi, copy and paste the following code:CODE#!/usr/bin/perl -wTuse strict;my $quote;open(QUOTES, "facts.txt") or die "Oops! Can... read more.
Read the FIRST post of this Topic. - Express your Opinion! Contribute Knowledge :-).

Open Discussion > CONTRIBUTE > Computers > Programming Languages > HTML, XML etc..

shtml - does anyone still use it

Saint_Michael
back in myhay days of designnig i saw alot of website doing the shtml format before php and asp came into full. if people still use especially in php would it be still higly recommended to drp shtml and go stright to php or implement shtml into php or html doc?

Reply

Triple X
QUOTE(Saint_Michael @ Oct 3 2004, 01:58 PM)
back in myhay days of designnig i saw alot of website doing the shtml format before php and asp came into full.  if people still use especially in php would it be still higly recommended to drp shtml and go stright to php or implement shtml into php or html doc?

I have never used it o_O I use .xxx for just html just php and both >_> its mine! html works in it by default and php does cuz I added something to .htaccess so it would.

What exactly IS .shtml?

Reply

bcdragon
QUOTE(Saint_Michael @ Oct 3 2004, 06:58 PM)
back in myhay days of designnig i saw alot of website doing the shtml format before php and asp came into full.  if people still use especially in php would it be still higly recommended to drp shtml and go stright to php or implement shtml into php or html doc?

man i have neaver hord of it man what teh heck is it. i only use html/php/css or what ever it is lol and i stink so i don't really know what i am talking about. so was it better wrost than html. i think it woudl be wrost jsut becuase it is older and all. i may try to build a site for it if i can find how to make any thing with it lol.... ok will i willl see ya guys i g2g ttly

Reply

mobileunlocking
iv never heard of shtml.

iv heard of dhtml and html etc but not that b4 :-(

looks like i learn somthing new everyday:D

Mick

Reply

Saint_Michael
shtml has been out for a few years but least i forget most of the member have not be laid yet so thier we go. if you apache for your website shtml is where you use it. its more like a server doc then a regular html so we go thats shtml

Reply

Saint_Michael
forgot anyone knowing about shtml want to add something about that.

Reply

mobileunlocking
yea does any1 know where i can have a lok at shtml and whats so good about it plz???


Mick

Reply

brandice
I was actually just thinking about shtml'ing my pages since I don't know php.

shtml is handy when you need to add the same information to a lot of pages, like a menu or a disclaimer. you would put the html code that is on all of your pages into a file, say, called "menu.txt". Then, in your regular html page where you want the menu to go you would put in:

CODE
<!--#include file="menu.txt" -->


Then be sure to save your page with an .shtml extension. with shtml, much like with .css you can change a bunch of pages just by editing one file.

Reply

andyy15
I use SSI on all of my web pages. SSI replaces frames and is much better. SSI can only be used of .shtml pages. If you have frames on your site I strongly suggest that you switch to SSI and .shtml.

Reply

googlue
QUOTE(andyy15 @ Oct 5 2004, 03:37 AM)
I use SSI on all of my web pages. SSI replaces frames and is much better. SSI can only be used of .shtml pages. If you have frames on your site I strongly suggest that you switch to SSI and .shtml.

I also use SSI to feed random quotes and jokes in my site!
It is great and I do this as I am not very familiar with PHP or asp.
Googlue!

Reply

Latest Entries

snlildude87
I use shtml to generate random facts on my front page. To do this:

1. Create a cgi-bin directory
2. Create a facts.txt file in the cgi-bin directory and put facts in there: 1 fact per line
3. Create a file named facts.cgi in notepad
4. In facts.cgi, copy and paste the following code:
CODE

#!/usr/bin/perl -wT
use strict;
my $quote;
open(QUOTES, "facts.txt") or die "Oops! Can't find quote file: $!";
srand;
rand($.) < 1 && ($quote = $_) while <QUOTES>;
print "Content-type: text/html\n\n";
print $quote;

5. Where ever you want the random fact to appear, copy and paste the following code to your page:
CODE

<!--#include virtual="cgi-bin/facts.cgi"-->

Change "cgi-bin/facts.cgi" (w/o quotes) to where ever you stored your facts.cgi file
6. Upload your cgi-bin directory to your web space
7. Chmod facts.cgi to 755
8. Remember to name the web page file that will display the random fact as blah.shtml where blah is any name you wish. shtml extension should stay.

Good luck!

Btw, should I have made that a separate topic/tutorial? If you admins think so, can you please move it for me? Thanks!

Reply

odomike
QUOTE(googlue @ Oct 13 2004, 03:27 PM)

There is no need for any special formatting at all. Simply change the file extension from .html or .htm to .shtml or .shtm!
Then it will accept all the shtml formats...

That's easy isn't it?
Googlue!

Supported. You follow exactly what googlue eplained to you. That will help you i guess.

Reply

googlue
QUOTE
How exactly do you format an HTML document so that it is shtml because my site is very standard at the moment and would like to add something in that is for shtml.


There is no need for any special formatting at all. Simply change the file extension from .html or .htm to .shtml or .shtm!
Then it will accept all the shtml formats...

That's easy isn't it?
Googlue!

Reply

Dawid
How exactly do you format an HTML document so that it is shtml because my site is very standard at the moment and would like to add something in that is for shtml.

Reply

atoz
Tell Me About SHTML..

Reply



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

(Maximum characters: 10,000)
You have characters left.

Pages: 1, 2

*RANDOM STUFF*





*SIMILAR VIDEOS*
Searching Video's for shtml

*MORE FROM TRAP17.COM*
advertisement



shtml - does anyone still use it



 

 

 

 

ADD REPLY / Got an Opinion! a humble request :-) RAPID SEARCH! Free Hosting [X]
Express your Opinions, Thoughts or Contribute your information that might help someone here.
Ask your Doubts & Queries to get answers.. "Together, We enlight each other!"
Register FREE for AD-FREE forum, Create your own topics, Ask Questions, track topics, setup subscriptions & notifications and Get a Free Website w/ Email and FTP.
500MB Space *No Ads*, CPanel, FTP, PHP, MySQL, EMails - 100% FREE