in reply to website, cgi-bin, different locations???

From a technical perspective, there's no reason at all. In fact, some webservers allow you to have your CGI scripts (which don't necessarily have to be written in Perl) on another machine.

The primary reason most people separate it is to have a separation of concerns - you don't want your business logic mixed in with your display logic.

The other reason most commonly cited is that it's easier to lock down your cgi-bin directory than it is your htdocs directory. So, there's a small security gain, but not a lot.

------
We are the carpenters and bricklayers of the Information Age.

Then there are Damian modules.... *sigh* ... that's not about being less-lazy -- that's about being on some really good drugs -- you know, there is no spoon. - flyingmoose

I shouldn't have to say this, but any code, unless otherwise stated, is untested

  • Comment on Re: website, cgi-bin, different locations???