On Mon, 14 May 2001, 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
With Perl, you have several options, from using simple textfile templates
with Text::Template, to embedded Perl solutions such as EmbPerl and
Apache::ASP to more elaborate component-based solutions like Mason. From
what you are describing, you are trying to implement a content-management
system with your database. You should look around and see what is already
available. http://perl.apache.org is a good start for looking at embedded
solutions.
Unless you are using NT & IIS -- then you'll want to use PerlScript & ASP.
-- Brett