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
0
votes
1 answer

Prevent Redirects for a python request to a .shtml link

I am making a python request to a .shtml link. I want the request to not allow redirects. I am using the following command for this purpose. response = requests.request("POST", url, headers=headers, data=payload, allow_redirects=False) However, it…
Muhammad Zubair
  • 466
  • 5
  • 17
0
votes
1 answer

How to run shtml include in php

I have dozens of .shtml files on the server which include this statement to include .inc files: This is exactly how it shows on the source which is working just fine. I am wondering whether I can run…
Tarik
  • 79,711
  • 83
  • 236
  • 349
0
votes
0 answers

Python Requests doesn't get the full content from a shtml page

I am new to Python and try to grab the table from a shtml page. When I used requests.get(url), the result was only a part of the full source code I could see from Chrome Browser and "hq_table" was not in it. This is the code: import requests url = …
TWSS
  • 1
0
votes
2 answers

Subdomain with index.shtml as default page?

Is there a way to use a .shtml as the default page for a subdomain? I need it this way as my site uses HTML includes. Possibly add something in the .htaccess?
0
votes
2 answers

Webpack + SSI rendering without full HTML compilation

I'm rebuilding a static legacy website with webpack + misc. plugins (mini-css-extract-plugin, html-webpack-plugin, copy-webpack-plugin, etc). This existing site includes SSI (html includes in tandem with shtml files for "component"-izing of html…
jazzninja
  • 63
  • 1
  • 10
0
votes
1 answer

Will Google index my shtml page's content if it is printed by Javascript?

I have SHTML files which I'd like to implement the following: Step 1: Let's say I have a SHTML page which displays "You must have Javascript turned on to view this content" by default / in a
Adam Lynch
  • 3,341
  • 5
  • 36
  • 66
0
votes
4 answers

Can I include a PHP file in an SHTML file and store the result in a SHTML variable?

I want to include a PHP file in an SHTML file and store the result in a SHTML variable and include different things depending on the result. Example: Assume the PHP script would echo 0/1 in plain text (depending on something like time or something).…
Adam Lynch
  • 3,341
  • 5
  • 36
  • 66
0
votes
2 answers

Is it possible to setup a redirect in a PHP file which is guaranteed to work?

I want to make a call to/include a PHP script which would force a re-direct to another page. (The other page will contain a captcha and will re-direct back if entered correctly). I need the most reliable PHP redirect code possible, so no one can…
Adam Lynch
  • 3,341
  • 5
  • 36
  • 66
0
votes
3 answers

Change shtml page to php

I have a site with pages with shtml extension, primarily done to have menu navbar display corrctly with SSI. I now am adding a page with php, and to have this page work properly I have given it a php extension, which causes the menu to no longer…
dmwesq
  • 131
  • 1
  • 4
  • 13
0
votes
0 answers

Can Heroku websites read Server Side Includes

I am simply trying to reuse variables across multiple webpages on a heroku app. However, I keep getting that the variable is not found when trying to deploy. I have saved as html file as shtml. I have also included this line without a script tag …
0
votes
1 answer

Generating a random number in an SHTML page

I need to attach a random number to a query string in an SHTML page. It's straightforward to generate the value in PHP: function get_random_id(){ srand ((double) microtime( )*1000000); return rand(0,1844); } But how do you use this when the…
Alex
  • 34,699
  • 13
  • 75
  • 158
0
votes
1 answer

How to implement Server side include with navigation links

I have 4 html pages. 1 of them is having common UI which needs to be available on all the other pages. In navigation page there are 3 links which points to the other 3 pages. I have used include to have this common file in all the three. I am not…
VJOY
  • 3,752
  • 12
  • 57
  • 90
0
votes
1 answer

how to retrieve label from a HTML class in a table using Swift

Trying to retrieve: "17,02" from the HTML below:
Shift
  • 43
  • 9
0
votes
1 answer

iOS apparently permanently caching web pages

I changed my website at the beginning of March to use php instead of shtml. I put server-side redirects in place, and my analytics showed almost everyone picking up the php versions within a couple of days. The only devices that went on and on…
MandyShaw
  • 1,088
  • 3
  • 14
  • 22
0
votes
0 answers

Prevent DOMDocument from closing tags

I need to process multiple files that are very old SHTML files that have been written using some malform HTML tags. As an example, a given page will follow this structure