|Welcome to the Monastery
Re: How to organize a CGI project?by Fastolfe (Vicar)
|on Jul 15, 2002 at 18:19 UTC
For larger web projects, sometimes it helps to create a set of Unix-ish directories and build from there:
Keep in mind that though it's a common practice to stick all of your CGI scripts in a /cgi-bin/ directory, it's not necessarily the best practice. Most web servers will let you drop a script.cgi directly into your document root, (and if you're extension-conscious, Apache's MultiViews or another content negotiation mechanism could allow you to link to it just as "script"), which could help with URI UI issues.
Sometimes this is overkill (and it sounds like it might be for this particular project), but this is useful for keeping stuff organized and allows a project to be completely self-contained and portable.