Includes: SSI or PHP for basic HTML and Javascript in separate files
I started my Xampp server and can now run my html in subdirectories (there can be no spaces in subdirectory names).
SSI Includes or PHP Includes:
Xampp says SSI is deactivated. Tried uncommenting lines for inclusions, but it doesn't change deactivation.
How do I activate SSI?
Then, how do I implement either SSI include statements or PHP include instructions in my html to call html files containing html, images, javascript and commands that call other javascript menu files?
0
source to share
3 answers
I don't know if Xampp has a special way to activate SSI or not, but the normal Apache way should work .
The usual way to include files in SSI is
<!--#include virtual="/something/file.html" -->
where the url of the file is actually http://www.example.com/something/file.html .
+1
source to share