Eric B. Leslie wrote ..
> I'm experimenting with putting a db backend on everything. What I've
> learned I am able to make a perl script that can access it and
> manipulate data for it but there's one key item I'm stumped on. What
> I'm trying to do is have the main content of the website be pulled off
> my database because there are tables with links leading to other pages
> that are visible on every page. See
> http://www.bentonsystems.com/repetios/. It would be a drag to have to
> update the links on every single page in my website.
> Without making a script that generates every single page, is there a
> way to call a script from inside an html document to place the content
> there. This may be way out of my league, but I can't find any
> documentations about this. Is there some other route I must take, like
> using PHP or javascript? Thanks
everyone else seems to be overlooking the obvious and/or getting ahead of
themselves .. from what you're saying you're looking for a way to include
the output of a Perl program inside a web page
what I think you're after are called Server Side Includes (or SSIs for
short) .. they're available for most web servers .. and the syntax is
generally the same (or similar) for all web servers
at least under IIS and Apache the following will embed the output of the
Perl program main_table.pl from the /cgi-bin directory in the body of the
web page
<html><head><title>SSI Example</title></head>
<body>
<!--#include virtual="/cgi-bin/main_table.pl" -->
</body></html>
--
jason king
In South Carolina, merchandise may not be sold within a half mile of
a church unless fruit is being sold. - http://dumblaws.com/