Server-side includes without PHP. Possibilities?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
rhecker
Forum Contributor
Posts: 178
Joined: Fri Jul 11, 2008 5:49 pm

Server-side includes without PHP. Possibilities?

Post 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.
User avatar
manohoo
Forum Contributor
Posts: 201
Joined: Wed Dec 23, 2009 12:28 pm

Re: Server-side includes without PHP. Possibilities?

Post 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.
User avatar
AbraCadaver
DevNet Master
Posts: 2572
Joined: Mon Feb 24, 2003 10:12 am
Location: The Republic of Texas
Contact:

Re: Server-side includes without PHP. Possibilities?

Post 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.
mysql_function(): WARNING: This extension is deprecated as of PHP 5.5.0, and will be removed in the future. Instead, the MySQLi or PDO_MySQLextension should be used. See also MySQL: choosing an API guide and related FAQ for more information.
User avatar
JNettles
Forum Contributor
Posts: 228
Joined: Mon Oct 05, 2009 4:09 pm

Re: Server-side includes without PHP. Possibilities?

Post 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" -->
rhecker
Forum Contributor
Posts: 178
Joined: Fri Jul 11, 2008 5:49 pm

Re: Server-side includes without PHP. Possibilities?

Post 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
Post Reply