[kwlug-disc] Can someone help?

Insurance Squared Inc. gcooke at insurancesquared.com
Wed May 5 08:25:00 EDT 2010


That's pretty cool John, and a great idea (and also the easiest way to 
do this).

The way that you may have been thinking about doing this would be 
through server side includes which works much like the php method noted 
below, you just add a snippet of text into the html and that grabs the 
other header file as well. <!--#include virtual="/header.html" -->

The only caution is that the server needs to be set up to allow server 
side includes (John's method shouldn't need anything like that) and I'm 
not so sure a standard webserver today would have that set.

In other words, you may have been thinking of server side includes, but 
John's suggestion is the way to do it :).




On 05/05/10 07:43 AM, John Van Ostrand wrote:
> The easiest way we do this is using PHP.
> Create header.php as the header including HEAD and BODY tags. Then create
> page.php with only HTML.
>
> Then create .htaccess file and use php's directive "auto_prepend_file"
> giving header.php as the file. I don't recal the exact syntax, search for
> that directive.
>
> Then the header.php file is called every time page.php is called.
>
>
> ----- Original Message -----
> From: kwlug-disc-bounces at kwlug.org<kwlug-disc-bounces at kwlug.org>
> To: KWLUG<kwlug-disc at kwlug.org>
> Sent: Wed May 05 01:46:43 2010
> Subject: [kwlug-disc] Can someone help?
>
> This is not specific to Linux.  I am playing with website development and
> the number of pages is growing.  The problem is that I want to keep the page
> heading area the same on all pages.  If it becomes necessary to change the
> page head I'd rather not have to do 36 changes; 36 now.
>
> When I did this before, there was a way by setting a separate document and
> calling copies of it whenever the page was loaded, automatically setting up
> the heading.
>
> Trouble is, I forget how to do it and I can't remember what this process of
> inserting text from other files is called so I have been unable to look it
> up.  I've tried many possibilities but nothing has worked.
> ================It's not the size of the dog in the fight, it's the size of
> the fight in the dog.
>
> _______________________________________________
> kwlug-disc_kwlug.org mailing list
> kwlug-disc_kwlug.org at kwlug.org
> http://astoria.ccjclearline.com/mailman/listinfo/kwlug-disc_kwlug.org
>
> _______________________________________________
> kwlug-disc_kwlug.org mailing list
> kwlug-disc_kwlug.org at kwlug.org
> http://astoria.ccjclearline.com/mailman/listinfo/kwlug-disc_kwlug.org
>
>    

-- 
Glenn Cooke
Insurance Squared Inc.
(866) 779-1499
www.insurancesquared.com

Insurance Agent Discussion Forum:
www.americaninsurancebroker.com






More information about the kwlug-disc mailing list