Posts: 3,987
Name: Abel Mohler
Location: Asheville, North Carolina USA
|
Find out what kind of servers your host uses, and if it is Apache, you will go with PHP. If it is Microsoft servers, sometimes PHP is available, but usually we're talking something different.
In PHP, a server side include is very simple, and works like this:
PHP Code:
....your regular HTML.... <?php include "your/file/location.php"; ?> ....more HTML....
For our purposes, all that needs to be at "your/file/location.php" is a file with a snippet of HTML (no header or DOCTYPE, like you would for a frame). You just put whatever you need in that location into the snippet file that you are including. By the time it reaches the browser, it is all one file, as everything is "included" together on the server.
SSI is a very simple concept, and easy to get a hang of.
***ONE MORE NOTE***
Normally, in order to use PHP on a page, the file you are using must have a .php extension, instead of a .html or .htm extension. There are ways around this but normally it is not needed, so name your files 'whatever.php'
__________________
I build web things. I work for the startup Please login or register to view this content. Registration is FREE
.
Last edited by wayfarer07; 06-05-2008 at 05:47 PM..
|