Questions tagged [shtml]

shtml files are HTML files that undergo server-side includes processing

SHTML files are HTML files for which server-side includes (SSI) is enabled.

Usually the server knows that it must perform SSI processing because the filename ends with a recognized extension, typically .shtml, .stm or .shtm. If the server is configured to allow it, SSI-enabled files may be recognized because they have the execution permission bit set.

88 questions
138
votes
3 answers

What is the purpose and uniqueness SHTML?

Recently I came to know about SHTML when I saw a site with .shtml extensions. What is the purpose of SHTML, and in what ways does it differ from HTML and DHTML?
balaweblog
  • 14,982
  • 28
  • 73
  • 95
17
votes
3 answers

HTML vs SHTML vs PHTML

What is the difference between: HTML SHTML PHTML Why and when i'll use which one?
A.N.M. Saiful Islam
  • 2,118
  • 5
  • 28
  • 34
13
votes
5 answers

Log user ip address, date and time

Is there a simple script or piece of code I can add to my page to keep a log of every visitor, the date and time they hit the page and IP address? And what would be the best way to do this... javascript, php, something else? EDIT: Ouch... Here is…
gravityboy
  • 817
  • 5
  • 11
  • 21
4
votes
1 answer

SHTML and DHTML - Should they be used, why aren't they?

With HTML 5 up, should we continue using the .dhtml and .shtml file formats? Why does Js and CSS work even when we use HTML, without DHTML. Is this practice wrong? Is there any advantage of SHTML over PHP? If these 2 are not deprecated, why aren't…
Manu
  • 109
  • 5
3
votes
4 answers

How to include PHP file in SHTML pages?

I have a shtml file index.shtml in which I want to include a PHP file which performs some programing and returns HTML data. I am trying to include my PHP file but I don't know how to do that, I tried following but nothing is working, Following line…
djmzfKnm
  • 26,679
  • 70
  • 166
  • 227
3
votes
1 answer

Setting cookie leads to an unexpected behaviour

I have a multilingual website with the possibility to switch between German and English. I want to store the chosen language in a cookie so that the visitor don't have to switch it over and over again to his prefered language when he visits the…
Bevor
  • 8,396
  • 15
  • 77
  • 141
3
votes
0 answers

How do you allow the .shtml extension with webpack-dev-server?

My company has shared resources and uses *.shtml to keep the same look and feel across the intranet. When developing on my local machine, how can I tell webpack-dev-server to use it? It downloads the file instead.
Jeremey
  • 152
  • 1
  • 5
3
votes
1 answer

What's the difference between HTML and SHTML now?

I have learned that shtml is html with ssi, but I wonder I can set ssi even with html files in httpd.conf of apache: AddType text/html .shtml .html AddOutputFilter INCLUDES .shtml .html if do so, the html files and shtmls are the same? Thanks for…
hanzichi
  • 609
  • 2
  • 12
  • 22
3
votes
1 answer

htaccess - rewrite .shtml and .html as . php

I'm pretty green with mod_rewrite. I've got the first line of this working like a champ, but the second part refuses to cooperate RewriteRule ^(.*).html$ $1.php RewriteRule ^(.*).shtml$ $1.php [R=301,L] The .shtml part fails wonderfully and 404s -…
2
votes
1 answer

How to add a hover on full div instead of SVG path?

I've tried to create a circle with a question mark in it. Now if you notice the hover effect is only on the circle and the question mark only but not the complete div. I tried to use the class on the parent div but because of SVG I think it doesn't…
BillNathan
  • 589
  • 1
  • 6
  • 26
2
votes
1 answer

PHP-7.1.6 - enable with security.limit_extensions .shtml files?

How to enable in PHP-7.1.6, setting "security.limit_extensions", execution of .shtml files? I get error "Access to the script '/var/www/..../file.shtml' has been denied (see security.limit_extensions)" The file.shtml is following
webww
  • 21
  • 3
2
votes
1 answer

Komodo Edit does not support shtml code hinting?

I have searched a lot about this feature but it seems that Komodo edit does not support any shtml intellisense. I cannot believe this as I finally found a great HTML/CSS/JavaScript/jQuery editor but no SHTML support! I thought that I have finally…
seedg
  • 21,692
  • 10
  • 42
  • 59
2
votes
1 answer

server side include not working for nested calls

I using server side includes to organize my files. The nested files do not seem to work. For eg:- index.shtml - this works fine This is not working. I am using WebStorm IDE by JetBrains I tried adding .htaccess file # Enable server side includes Options +Includes # pass .html files to…
Stacy J
  • 2,721
  • 15
  • 58
  • 92
2
votes
4 answers

PHP or htaccess make dynamic url page to go 404 when item is missing in DB

Typical scenario: DB items are displaied in page http://...?item_id=467 User one day deletes the item Google or a user attempts to access http://...?item_id=467 PHP diggs into DB and sees items does not exist anymore, so now PHP must…
Marco Demaio
  • 33,578
  • 33
  • 128
  • 159
1
2 3 4 5 6