Forum Moderators: mack
This is the first website ive made, ive tried a few things so im posting here for help :)
I use dreamweaver and i can just press add script,
So i added a SSI, and put it on the web, but it didn’t work.
Im not sure if i would have to pay more money and get that on the server? Im very confused i went on the internet and looked for ideas but came up with nothing!
Any help would be a great help!
Rj
AddType application/x-httpd-php .htm .html
to your .htaccess file so you can keep using your .htm and .html files. This will make all .htm and .html files run through the PHP engine but if you put includes on each page it does not matter. I do it without any problems.
and use
<?php include("page.html");?>
as your includes. If you want to use any other php later you can.
1. Create your main page, e.g. <test.html>.
2. To include <insertion.html> in your <test.html> file, use this code somewhere inside <test.html>: <!--#include virtual="insertion.html"-->
3. Edit your <.htaccess> file (or create one if it's not already there, at the same level as your index.html file), so that it contains this line: AddHandler server-parsed: .html
Note that there's a period at the beginning of the filename.
That ought to do it. If it doesn't work, let us know whether <test.html> in a browser shows nothing unusual, or whether it says "An error occurred while processing this directive."
Any thoughts on this?
Matt