in reply to Update: Automatic execution of a CGI program on a web page besides a counter
in thread Automatic execution of a CGI program on a web page besides a counter

PopcornDave,

In regards to what chromatic said, you should look into pointing users that go to "www.myhost.com" to index.shtml. By having an index written with SSI and Perl, i think you'll be able to reap the most benefits.

I'm not against writing a whole website in Perl, however,

if you have a lot of static content, my suggestion is to put that into SSI+HTML pages, and put your perl scripts in your <!--#include virtual=""--> or your <!--#exec cgi=""--> includes.

For example, I have a simple CGI program on my webserver that puts a random quote on my homepage.

It's called by <!--#include virtual="johnisms.pl"-->.

By having the static information stored in an HTML page, it puts (marginally) less strain on Perl, and allows you to design the page in any HTML editor. (Dreamweaver works well with SSI).

Hope this helps!

John J Reiser
newrisedesigns.com

  • Comment on Re: Update: Automatic execution of a CGI program on a web page besides a counter