html include

Problems with the Windows version of XAMPP, questions, comments, and anything related.

html include

Postby cwood » 19. August 2019 14:37

<!--#include file="header.html"--> was working until a recent update in Windows 10 Pro. It now fails. I can only rename and existing html file to a php file and change the include to <?php include "header.html"; ?>.
Is this a problem with windows or XAMPP configuration?
Posts: 2
Joined: 25. September 2018 16:32
XAMPP version: 2.5
Operating System: Windows 10

Re: html include

Postby Nobbie » 19. August 2019 17:50

Its a server configuration. The include Syntax is called "Server Sides Include" (SSI) and is implemented in Apache. I dont know, if Xampp supports SSI and how, but formerly you had to name your files "*.shtml" instead of "*.html" in order to activate the SSI Interpreter. Maybe this is still supported that way in Xampp. Rename to index.shtml (also try index.shtm) and try again.
Posts: 11774
Joined: 09. March 2008 13:04

Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 42 guests