Tag Archives: SSI

Displaying the Correct Time for Your Time Zone

Let’s say that you want to display the time on your HTML page.  You could do it like this in test.html: <html> <body> <!–#config timefmt=”%I:%M %p %Z” –> <p><!–#echo var=”DATE_LOCAL”–></p> </body> </html> That works fine as long as your ISP … Continue reading

Posted in Apache, HTML, PHP | Tagged , , , , , , | Leave a comment

Displaying a Copyright Year on an HTML Page

Let’s say that you’re building a large website in HTML.  The client wants to display a copyright declaration on each page of the site using the current year.  If the year is hard-coded on the site on each page, this … Continue reading

Posted in HTML | Tagged , , | Leave a comment

Turning on SSI in Apache on a Linux Server

Turning on Server Side Includes on my ISP’s Apache server turned out to be HTML quite easy.  All I needed to do was add the following lines to the .htaccess file in the directory where the pages reside: Options +Includes … Continue reading

Posted in Apache | Tagged , | Leave a comment

Turning on SSI in IIS on a Windows Server

If you are testing your HTML files with SSI calls on a Windows server, you will need to set options to allow SSI to be interpreted on the server side.  The following are the steps I took to set up … Continue reading

Posted in IIS | Tagged , , | Leave a comment

Including HTML Files in an HTML File

Let’s say that you are building a site with several different HTML pages.  You want them all to have the same template and menu structure.  This would require a lot of duplicated code in each page of the site.  Wouldn’t … Continue reading

Posted in HTML | Tagged , , | Leave a comment