Page 1 of 1

Server-side includes without PHP. Possibilities?

Posted: Mon Dec 28, 2009 10:20 am
by rhecker
I am going to rebuild a website for someone who does not want me to use PHP, so I can't use PHP includes. Using Dreamweaver templates is also not an option. I'm wondering if there is some way I incorporate "includes" that I am currently unaware of.

The goal is a site that the client can manange in Dreamweaver. He does not want to incorporate PHP and I dislike Dreamweaver templates, so I'm looking for other options.

Any thoughts appreciated.

Re: Server-side includes without PHP. Possibilities?

Posted: Mon Dec 28, 2009 11:16 am
by manohoo
No scripting language at all?
Good luck!!!

I would stay away from any project where PHP (or any other scripting language) is not an option.

Re: Server-side includes without PHP. Possibilities?

Posted: Mon Dec 28, 2009 12:21 pm
by AbraCadaver
There is actually a technology called Server Side Includes. If you have Apache, try this: http://httpd.apache.org/docs/1.3/howto/ssi.html

Also, you can do some basic including using javascript.

But I agree with manohoo. If you only want static HTML with no scripting technologies, then you get static HTML with all of its limitations.

Re: Server-side includes without PHP. Possibilities?

Posted: Mon Dec 28, 2009 2:40 pm
by JNettles
I used SSI for many years way back when my web host didn't support scripting languages. It worked just fine.

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

Re: Server-side includes without PHP. Possibilities?

Posted: Mon Dec 28, 2009 4:09 pm
by rhecker
Thanks Abracadaver and Jnettles,

I will explore SSI.

I like the client so I'm willing to indulge his wish to stay low tech. For him, it's a control issue. He doesn't want to lose his own ability to manage and understand his site. I don't mind.


ADDED LATER:
This worked perfectly. I didn't even have to make changes to my local apache server or the public apache server. Love it.

R