Re: Apache server-side includes questions
On Mon, 2 Jun 1997, Tom Lees wrote:
> > Somewhere along the line, my tricks (hacks?) for doing server-side
> > inclusion of standardized (and separately changeable) headers and footers
> > on web pages broke. I admit to not knowing the _right_ way to do it,
> > having stolen lots of bits and pieces along the way and learning
> > originally on the ncsa server on my school's DEC box.
> > Here's what I'm currently doing:
> > <!--#exec cmd="./header"-->
> > is in the page.
> > I had an .htaccess file that looked like this:
> > AddType text/x-server-parsed-html .html
> Use AddHandler server-parser .html instead, this will fix everything.
> > What's the Right Way(tm) to include the output of a perl script into a web
> > page?
> As you were doing it. Or, use a CGI, and point it at a "target" frame :)
> PS. the perl script you had there can be done without using perl:
> <!--#include "blah" --> instead. Blah can <!--#echo var=LAST_MODIFIED -->.
> Much quicker, less resource-hungry.
It's still showing the #includes as comments. Any ideas?
Peter J. Templin, Jr. Client Services Analyst
Computer & Communication Services tel: (717) 524-1590
Bucknell University firstname.lastname@example.org
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
email@example.com . Trouble?
e-mail to firstname.lastname@example.org .