views:

539

answers:

2

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

NEXT UP - 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?

I have been reading around the net a bit, but so far no luck getting it to work.

You folks are AWESOME!!!

+1  A: 

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 .

R. Bemrose
A: 

PHP includes are pretty straightforward. Just name your file something.php and do this:

<?php include('path/to/file.php'); ?>

The file will be parsed by php so it can contain the standard mix of PHP/HTML tags or whatever other text you'd like.

Matt Kantor