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
2
votes
3 answers

If I have one nav_bar.html file that is included on other pages, how do I show which menu item is active?

thanks for taking the time to read this. I have a JavaScript (jQuery) navigation bar on my main page that is simply "included" on my page. For example, I have index.shtml that "includes" the nav bar, which is "nav_bar.shtml". And this is the same…
Mike
  • 113
  • 1
  • 5
2
votes
1 answer

WAMP Server Side Includes not working on .shtml files

What I am trying to do is get Server Side Includes (SSI) to work on WAMP Server 2.5 (downloaded from here) for Windows 7. However, even after editing the config file to include SSI by these instructions, I still could not get them to…
user4883259
2
votes
1 answer

PHP session not working when script included in SHTML pages

Just a newbie here so please pardon my mistakes. I'm working on a website using .shtml pages (SSI). I'm trying to include a PHP script into my .shtml page. Up to this point everything is working fine: PHP script gets included and it does what it was…
Ambrosia
  • 61
  • 4
2
votes
1 answer

Is the autocomplete tag a valid tag in .shtml file?

I was adding the autocomplete attribute to a few password input fields and I noticed that in notepad++ as my text editor the autocomplete = "off" attribute is valid in various types of files (i.e. html, xsl), but in .shtml files autocomplete = "off"…
ConfusedDeer
  • 3,335
  • 8
  • 44
  • 72
2
votes
2 answers

Is "include file" in shtml the best method to keep non-database changing data

We have a website that uses #include file command to roll info into some web pages. The authors can access the text files to update things like the occasional class or contact information for the department. My question is this, I don't see anyone…
Keng
  • 52,011
  • 32
  • 81
  • 111
2
votes
1 answer

SSI commands not working is for shtml files in iis

The following code should show either the port or server name not both. I always get both no matter what ? I have also…
user164815
1
vote
1 answer

Rendering of PHP include in SHTML file

I am using a include of a php script in my shtml page. My server is setup fine to detect and render the mixed php. The page renders the script fine in all browsers. However... when trying to view the page in Google translate, the path of the…
1
vote
0 answers

Server-side include: An image link breaks within the included contents

Suppose that folder B is inside of folder A. Folder B contains:     index.shtml     a.html     image.png And, in index.shtml, I include a line And, image.png is referenced in a.html with
nunz
  • 11
  • 3
1
vote
1 answer

Lighttpd SSI: Setting variable to value of HTTP_ACCEPT

I am using this shtml file for testing.