test SSI ‘server side included’

To test if your server supports SSI then, you can run a simple test, by inserting the below code inside a webpage, and saving the page with a .shtml extension (the most common extension configured to parse SSI by default):

test.shtml source:

<!--#echo var="DATE_LOCAL" -->

When you run test.shtml in your browser, you should see the current date plus time of your server displayed:

Friday, 10-May-2019 18:13:15 CDT

About Damon Luong

San Jose, California
This entry was posted in My Linux, My Windows. Bookmark the permalink.