Javascript – Includes: SSI or PHP for basic HTML and Javascript in separate files

fileincludejavascriptPHPssi

I got my Xampp server running and can run my html in subdirectories now, as well (can't have spaces in the subdirectory names).

SSI Includes or PHP Includes:

Xampp says SSI is deactivated. Tried uncommenting the lines for includes, but it doesn't change the deactivation.

How do I activate SSI?

Then, how do I implement either SSI include statements or PHP include statements into my html to call up html files that include html, images, javascript and commands that call other javascript menu files?

Best Answer

I don't know if Xampp has a special way of activating SSI or not, but the normal Apache way should work.

The normal way to include files in SSI is

<!--#include virtual="/something/file.html" --> 

where the url to the file is actually http://www.example.com/something/file.html .